cptui_do_import_types_taxes

Handle the import of transferred post types and taxonomies.

Description

cptui_do_import_types_taxes(); 

Usage

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

Defined (1)

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

/inc/tools.php  
  1. function cptui_do_import_types_taxes() { 
  2.  
  3. if ( ! empty( $_POST ) && 
  4. ( ! empty( $_POST['cptui_post_import'] ) && isset( $_POST['cptui_post_import'] ) ) || 
  5. ( ! empty( $_POST['cptui_tax_import'] ) && isset( $_POST['cptui_tax_import'] ) ) 
  6. ) { 
  7. $success = cptui_import_types_taxes_settings( $_POST ); 
  8. add_action( 'admin_notices', "cptui_{$success}_admin_notice" );