wpsc_register_taxonomies_product_tag_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 Tag taxonomy.

Code in context:

[php firstline=”380″ highlight=”399″]

// Product tags

$labels = array(

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

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

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

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

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

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

‘add_new_item’ => __( ‘Add new Product Tag’ , ‘wpsc’ ),

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

);

$args = array(

‘hierarchical’ => false,

‘labels’ => $labels,

‘rewrite’ => array(

‘slug’ => ‘/’ . sanitize_title_with_dashes( _x( ‘tagged’, ‘slug, part of url’, ‘wpsc’ ) ),

‘with_front’ => false )

);

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

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

[/php]