cptui_add_styles

Enqueue CPTUI admin styles.

Description

cptui_add_styles(); 

Usage

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

Defined (1)

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

/custom-post-type-ui.php  
  1. function cptui_add_styles() { 
  2. if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { 
  3. return; 
  4.  
  5. $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 
  6. wp_register_script( 'cptui', plugins_url( "js/cptui{$min}.js", __FILE__ ), array( 'jquery', 'postbox' ), CPTUI_VERSION, true ); 
  7. wp_enqueue_style( 'cptui-css', plugins_url( "css/cptui{$min}.css", __FILE__ ), array(), CPTUI_VERSION );