cptui_do_convert_taxonomy_terms

Handle the conversion of taxonomy terms.

Description

cptui_do_convert_taxonomy_terms(); 

This function came to be because we needed to convert AFTER registration.


Usage

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

Defined (1)

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

/inc/taxonomies.php  
  1. function cptui_do_convert_taxonomy_terms() { 
  2.  
  3. /** 
  4. * Whether or not to convert taxonomy terms. 
  5. * @since 1.4.3 
  6. * @param bool $value Whether or not to convert. 
  7. */ 
  8. if ( apply_filters( 'cptui_convert_taxonomy_terms', false ) ) { 
  9. cptui_convert_taxonomy_terms( sanitize_text_field( $_POST['tax_original'] ), sanitize_text_field( $_POST['cpt_custom_tax']['name'] ) );