Filters whether the fatal error handler is enabled.
Description
<strong>Important:</strong> This filter runs before it can be used by plugins. It cannot be used by plugins, mu-plugins, or themes. To use this filter you must define a $wp_filter global before WordPress loads, usually in wp-config.php. Example: $GLOBALS['wp_filter'] = array(
'wp_fatal_error_handler_enabled' => array(
10 => array(
array(
'accepted_args' => 0,
'function' => function() {
return false;
},
),
),
),
); Alternatively you can use the WP_DISABLE_FATAL_ERROR_HANDLER constant.
Parameters
$enabledbool
True if the fatal error handler is enabled, false otherwise.
133* Alternatively you can usethe`WP_DISABLE_FATAL_ERROR_HANDLER` constant.134*135* @since 5.2.0136*137* @param bool$enabledTrueif the fatal error handler is enabled,false otherwise.138*/139returnapply_filters('wp_fatal_error_handler_enabled',$enabled);140}141142/**143* Access the WordPress Recovery Mode instance.144*145* @since 5.2.0
History
Introduced in 5.2.0. Unchanged from 6.7.7 through 7.1.0.