Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action('init', 'cptui_register_my_taxes_work_type');
- function cptui_register_my_taxes_work_type() {
- register_taxonomy('work-type', array (0 => 'work',),
- array(
- 'hierarchical' => true,
- 'label' => 'Categories',
- 'show_ui' => true,
- 'query_var' => true,
- 'show_admin_column' => false,
- 'labels' => array (
- 'search_items' => 'Category',
- 'popular_items' => '',
- 'all_items' => '',
- 'parent_item' => '',
- 'parent_item_colon' => '',
- 'edit_item' => '',
- 'update_item' => '',
- 'add_new_item' => '',
- 'new_item_name' => '',
- 'separate_items_with_commas' => '',
- 'add_or_remove_items' => '',
- 'choose_from_most_used' => '',
- 'rewrite' => array(
- 'with_front' => false
- ),
- )
- )
- );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement