pods_strict

Determine if Strict Mode is enabled.

Description

pods_strict( (bool) $include_debug = true ); 

Parameters (1)

0. $include_debug — Optional. (bool) => true
Whether to include WP_DEBUG in strictness level

Usage

  1. if ( !function_exists( 'pods_strict' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'pods-custom-content-types-and-fields/includes/general.php'; 
  3.  
  4. // Whether to include WP_DEBUG in strictness level 
  5. $include_debug = true; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pods_strict($include_debug); 
  9.  

Defined (1)

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

/includes/general.php  
  1. function pods_strict( $include_debug = true ) { 
  2.  
  3. if ( defined( 'PODS_STRICT' ) && PODS_STRICT ) { 
  4. return true; 
  5. // @deprecated PODS_STRICT_MODE since 2.3.5 
  6. elseif ( pods_allow_deprecated( false ) && defined( 'PODS_STRICT_MODE' ) && PODS_STRICT_MODE ) { 
  7. return true; 
  8. elseif ( $include_debug && defined( 'WP_DEBUG' ) && WP_DEBUG ) { 
  9. return true; 
  10.  
  11. return false; 
  12.