Advertisement
Guest User

Product Custom Taxonomy

a guest
Mar 24th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.99 KB | None | 0 0
  1.     register_taxonomy( 'product_range_cat',
  2.         array('product'),
  3.         array('hierarchical' => true,                  
  4.             'labels' => array(
  5.                 'name' => __( 'Product Categories', 'bonestheme' ),
  6.                 'singular_name' => __( 'Product Category', 'bonestheme' ),
  7.                 'search_items' =>  __( 'Search Product Categories', 'bonestheme' ),
  8.                 'all_items' => __( 'All Product Categories', 'bonestheme' ),
  9.                 'parent_item' => __( 'Parent Product Category', 'bonestheme' ),
  10.                 'parent_item_colon' => __( 'Parent Product Category:', 'bonestheme' ),
  11.                 'edit_item' => __( 'Edit Product Category', 'bonestheme' ),
  12.                 'update_item' => __( 'Update Product Category', 'bonestheme' ),
  13.                 'add_new_item' => __( 'Add New Product Category', 'bonestheme' ),
  14.                 'new_item_name' => __( 'New Product Category Name', 'bonestheme' )
  15.             ),
  16.             'show_ui' => true,
  17.             'query_var' => true,
  18.             'rewrite' => array( 'slug' => 'product-category' ),
  19.         )
  20.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement