wpsc_register_taxonomies_product_category_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 Category taxonomy.

Code in context:

[php firstline=”402″ highlight=”425″]

// Product categories, is heirarchical and can use permalinks

$labels = array(

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

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

‘search_items’ => __( ‘Search Product Categories’, ‘wpsc’ ),

‘all_items’ => __( ‘All Product Categories’ , ‘wpsc’ ),

‘parent_item’ => __( ‘Parent Product Category’ , ‘wpsc’ ),

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

‘edit_item’ => __( ‘Edit Product Category’ , ‘wpsc’ ),

‘update_item’ => __( ‘Update Product Category’ , ‘wpsc’ ),

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

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

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

);

$args = array(

‘labels’ => $labels,

‘hierarchical’ => true,

‘rewrite’ => array(

‘slug’ => $wpsc_page_titles[‘products’],

‘with_front’ => false,

‘hierarchical’ => (bool) get_option( ‘product_category_hierarchical_url’, 0 ),

),

);

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

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

[/php]