Guest User

WPSE 121733

a guest
Nov 8th, 2013
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_action('init', 'cptui_register_my_taxes_work_type');
  2.  
  3. function cptui_register_my_taxes_work_type() { 
  4.     register_taxonomy('work-type', array (0 => 'work'),
  5.         array(
  6.             'hierarchical' => true,
  7.             'label' => 'Categories',
  8.             'labels' => array (
  9.               'search_items' => 'Category',
  10.               'popular_items' => '',
  11.               'all_items' => '',
  12.               'parent_item' => '',
  13.               'parent_item_colon' => '',
  14.               'edit_item' => '',
  15.               'update_item' => '',
  16.               'add_new_item' => '',
  17.               'new_item_name' => '',
  18.               'separate_items_with_commas' => '',
  19.               'add_or_remove_items' => '',
  20.               'choose_from_most_used' => ''
  21.             ),
  22.             'rewrite' => array('with_front' => false)
  23.         )
  24.     );
  25. }
RAW Paste Data