gmb_is_func_disabled

Checks whether function is disabled.

Description

gmb_is_func_disabled( (string) $function ); 

Parameters (1)

0. $function (string)
Name of the function.

Usage

  1. if ( !function_exists( 'gmb_is_func_disabled' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'maps-builder/vendor/wordimpress/maps-builder-core/includes/misc-functions.php'; 
  3.  
  4. // Name of the function. 
  5. $function = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gmb_is_func_disabled($function); 
  9.  

Defined (1)

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

/vendor/wordimpress/maps-builder-core/includes/misc-functions.php  
  1. function gmb_is_func_disabled( $function ) { 
  2. $disabled = explode( ', ', ini_get( 'disable_functions' ) ); 
  3.  
  4. return in_array( $function, $disabled );