Description
Returns the Custom Taxonomy definitions. The definition is an array with the next format:
<?php $def = array( $taxonomy_id => array( 'post_type' => 'tcp_product', 'name' => 'Categories', 'activate' => true/false, 'label' => 'Label', 'singular_name' => 'Category' 'search_items' => 'Search Categories' 'all_items' => 'All Categories' 'parent_item' => 'Parent Category', 'parent_item_colon' => 'Parent Category:', 'edit_item' => 'Edit Category', 'update_item' => 'Update Category', 'add_new_item' => 'Add New Category', 'new_item_name' => 'New Category Name', 'desc' => '', 'query_var' => true/false, 'hierarchical' => true/false 'rewrite' => array( 'slug' => 'product_category' ), ), );?>
Usage
<?php echo tcp_get_custom_taxonomies( $post_type ); ?>
Parameters
- $post_type
- (String) The ID of the post type you’d like to return its taxonomy definitions. By default the function returns all the taxonomies.
Examples
Change Log
Since: 1.1.6
Related
tcp_set_custom_taxonomies | tcp_get_custom_taxonomy | tcp_exist_custom_taxonomy | tcp_update_custom_taxonomy | tcp_delete_custom_taxonomy | tcp-create-custom-taxonomy