cptui_is_new_install

Check whether or not we're on a new install.

Description

cptui_is_new_install(); 

Usage

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

Defined (1)

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

/inc/utility.php  
  1. function cptui_is_new_install() { 
  2. $new_or_not = true; 
  3. $saved = get_option( 'cptui_new_install', '' ); 
  4.  
  5. if ( 'false' === $saved ) { 
  6. $new_or_not = false; 
  7.  
  8. /** 
  9. * Filters the new install status. 
  10. * Offers third parties the ability to override if they choose to. 
  11. * @since 1.5.0 
  12. * @param bool $new_or_not Whether or not site is a new install. 
  13. */ 
  14. return (bool) apply_filters( 'cptui_is_new_install', $new_or_not );