wpsc_register_taxonomies_product_variation_args

Located in: wpsc-functions.php

Functions that call this hook: wpsc_register_post_types()

Arguments Accepted: $args

Version Introduced: 3.8.9

Description: Use this filter to modify Product Variation taxonomy.

Code in context:

[php firstline=”428″ highlight=”447″]

$labels = array(

‘name’ => _x( ‘Variations’ , ‘taxonomy general name’ , ‘wpsc’ ),

‘singular_name’ => _x( ‘Variation’ , ‘taxonomy singular name’, ‘wpsc’ ),

‘search_items’ => __( ‘Search Variations’ , ‘wpsc’ ),

‘all_items’ => __( ‘All Variations’ , ‘wpsc’ ),

‘parent_item’ => __( ‘Parent Variation’ , ‘wpsc’ ),

‘parent_item_colon’ => __( ‘Parent Variations:’, ‘wpsc’ ),

‘edit_item’ => __( ‘Edit Variation’ , ‘wpsc’ ),

‘update_item’ => __( ‘Update Variation’ , ‘wpsc’ ),

‘add_new_item’ => __( ‘Add New Variation’ , ‘wpsc’ ),

‘new_item_name’ => __( ‘New Variation Name’, ‘wpsc’ ),

);

$args = array(

‘hierarchical’ => true,

‘query_var’ => ‘variations’,

‘rewrite’ => false,

‘public’ => true,

‘labels’ => $labels

);

$args = apply_filters( ‘wpsc_register_taxonomies_product_variation_args’, $args );

// Product Variations, is internally heirarchical, externally, two separate types of items, one containing the other

register_taxonomy( ‘wpsc-variation’, ‘wpsc-product’, $args );

[/php]