nf_is_func_disabled

The Ninja Forms nf is func disabled function.

Description

nf_is_func_disabled( $function ); 

Parameters (1)

0. $function
The function.

Usage

  1. if ( !function_exists( 'nf_is_func_disabled' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/classes/step-processing.php'; 
  3.  
  4. // The function. 
  5. $function = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = nf_is_func_disabled($function); 
  9.  

Defined (5)

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

/deprecated/classes/step-processing.php  
  1. function nf_is_func_disabled($function) 
  2. $disabled = explode(', ', ini_get('disable_functions')); 
  3.  
  4. return in_array($function, $disabled); 
/deprecated/includes/admin/upgrades/class-upgrade-handler.php  
  1. function nf_is_func_disabled($function) 
  2. $disabled = explode(', ', ini_get('disable_functions')); 
  3.  
  4. return in_array($function, $disabled); 
/deprecated/includes/admin/upgrades/upgrade-functions.php  
  1. function nf_is_func_disabled($function) 
  2. $disabled = explode(', ', ini_get('disable_functions')); 
  3.  
  4. return in_array($function, $disabled); 
/deprecated/includes/functions.php  
  1. function nf_is_func_disabled($function) 
  2. $disabled = explode(', ', ini_get('disable_functions')); 
  3.  
  4. return in_array($function, $disabled); 
/includes/deprecated.php  
  1. function nf_is_func_disabled( $function ) { 
  2. Ninja_Forms::deprecated_notice( 'nf_is_func_disabled', '3.0', 'WPN_Helper::is_func_disabled()', debug_backtrace() ); 
  3. return WPN_Helper::is_func_disabled( $function );