cptui_render_tools

Renders various tab sections for the Tools page, based on current tab.

Description

cptui_render_tools( (string) $tab ); 

Parameters (1)

0. $tab (string)
Current tab to display.

Usage

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

Defined (1)

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

/inc/tools.php  
  1. function cptui_render_tools( $tab ) { 
  2. if ( isset( $tab ) ) { 
  3. if ( 'post_types' == $tab || 'taxonomies' == $tab ) { 
  4.  
  5. if ( 'get_code' == $tab ) { 
  6.  
  7. if ( 'debuginfo' == $tab ) {