evolved_create_video_category

The Evolved evolved create video category function.

Description

evolved_create_video_category(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function evolved_create_video_category()  
  2.  
  3. $labels = array( 
  4. 'name' => _x( 'Video Categories', 'taxonomy general name', 'evolved' ),  
  5. 'singular_name' => _x( 'Video Category', 'taxonomy singular name', 'evolved' ),  
  6. 'search_items' => __( 'Search Video Categories', 'evolved'),  
  7. 'all_items' => __( 'All Video Categories', 'evolved' ),  
  8. 'parent_item' => __( 'Parent Video Category', 'evolved' ),  
  9. 'parent_item_colon' => __( 'Parent Video Category:', 'evolved' ),  
  10. 'edit_item' => __( 'Edit Video Category', 'evolved' ),  
  11. 'update_item' => __( 'Update Video Category', 'evolved' ),  
  12. 'add_new_item' => __( 'Add New Video Category', 'evolved' ),  
  13. 'new_item_name' => __( 'New Video Category Name', 'evolved' ),  
  14. 'menu_name' => __( 'Categories', 'evolved' ),  
  15. );  
  16.  
  17. register_taxonomy('evolved_video_category', array('evolved_video'), array( 
  18. 'public' => true,  
  19. 'show_in_nav_menus' => true,  
  20. 'hierarchical' => true,  
  21. 'labels' => $labels,  
  22. 'show_ui' => true,  
  23. 'query_var' => true,  
  24. )); 
  25.