create_brochure_taxonomy

The Responsive Minimal create brochure taxonomy function.

Description

create_brochure_taxonomy(); 

Usage

  1. if ( !function_exists( 'create_brochure_taxonomy' ) ) { 
  2. require_once '/functions/taxonomies.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = create_brochure_taxonomy(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions/taxonomies.php  
  1. function create_brochure_taxonomy() { 
  2. $labelts = array( 
  3. 'name' => __('Brochures', 'tstranslate'),  
  4. 'singular_name' => __('Brochure', 'tstranslate'),  
  5. 'search_items' => __('Search Brochure', 'tstranslate'),  
  6. 'popular_items' => __('Popular brochures', 'tstranslate'),  
  7. 'all_items' => __('All brochures', 'tstranslate'),  
  8. 'parent_item' => null,  
  9. 'parent-item_colon' => null,  
  10. 'edit_item' => __('Edit brochure', 'tstranslate'),  
  11. 'update_item' => __('Update brochure', 'tstranslate'),  
  12. 'add_new_item' => __('Add new brochure', 'tstranslate'),  
  13. 'new_item_name' => __('New brochure', 'tstranslate'),  
  14. 'separate_items_with_commas' => __('Separate brochures with commas', 'tstranslate'),  
  15. 'add_or_remove_items' => __('Add or remove brochures', 'tstranslate'),  
  16. 'choose_from_most_used' => __('Choose from the most used brochures', 'tstranslate'),  
  17. 'menu_name' => __('Brochures', 'tstranslate') 
  18. ); 
  19. register_taxonomy('brochures', array('wtsservice'), array( 
  20. 'public' => true,  
  21. 'hierarchical' => true,  
  22. 'labels' => $labelts,  
  23. 'show_in_nav_menus' => true,  
  24. 'show_ui' => true,  
  25. 'query_var' => true,  
  26. 'rewrite' => array("slug" => "brochures") 
  27. )); 
  28. flush_rewrite_rules();