cptui_create_custom_post_types

Register our users' custom post types.

Description

cptui_create_custom_post_types(); 

Usage

  1. if ( !function_exists( 'cptui_create_custom_post_types' ) ) { 
  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_post_types(); 
  7.  

Defined (1)

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

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