cptui_create_custom_taxonomies

Register our users' custom taxonomies.

Description

cptui_create_custom_taxonomies(); 

Usage

  1. if ( !function_exists( 'cptui_create_custom_taxonomies' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'custom-post-type-ui/custom-post-type-ui.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = cptui_create_custom_taxonomies(); 
  7.  

Defined (1)

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

/custom-post-type-ui.php  
  1. function cptui_create_custom_taxonomies() { 
  2. $taxes = get_option( 'cptui_taxonomies' ); 
  3.  
  4. if ( empty( $taxes ) ) { 
  5. return; 
  6.  
  7. /** 
  8. * Fires before the start of the taxonomy registrations. 
  9. * @since 1.3.0 
  10. * @param array $taxes Array of taxonomies to register. 
  11. */ 
  12. do_action( 'cptui_pre_register_taxonomies', $taxes ); 
  13.  
  14. if ( is_array( $taxes ) ) { 
  15. foreach ( $taxes as $tax ) { 
  16.  
  17. /** 
  18. * Fires after the completion of the taxonomy registrations. 
  19. * @since 1.3.0 
  20. * @param array $taxes Array of taxonomies registered. 
  21. */ 
  22. do_action( 'cptui_post_register_taxonomies', $taxes );