cptui_slug_has_quotes

Returns error message for if trying to use quotes in slugs or rewrite slugs.

Description

(string) cptui_slug_has_quotes(); 

Returns (string)


Usage

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

Defined (1)

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

/inc/utility.php  
  1. function cptui_slug_has_quotes() { 
  2. return sprintf( 
  3. esc_html__( 'Please do not use quotes in post type/taxonomy names or rewrite slugs', 'custom-post-type-ui' ),  
  4. );