cptui_slug_matches_taxonomy

Returns error message for if trying to register existing taxonomy.

Description

(string) cptui_slug_matches_taxonomy(); 

Returns (string)


Usage

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

Defined (1)

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

/inc/utility.php  
  1. function cptui_slug_matches_taxonomy() { 
  2. return sprintf( 
  3. esc_html__( 'Please choose a different taxonomy name. %s is already registered.', 'custom-post-type-ui' ),  
  4. );