WordPress at Your Fingertips
filter is not described

enable_wp_debug_mode_checks filter-hook . WP 4.6.0

Filters whether to allow the debug mode check to occur.

This filter runs before it can be used by plugins. It is designed for non-web run-times. Returning false causes the WP_DEBUG and related constants to not be checked and the default PHP values for errors will be used unless you take care to update them yourself.

To use this filter you must define a $wp_filter global before WordPress loads, usually in wp-config.php.

Example:

$GLOBALS['wp_filter'] = array(
	'enable_wp_debug_mode_checks' => array(
		10 => array(
			array(
				'accepted_args' => 0,
				'function'      => function() {
					return false;
				},
			),
		),
	),
);

Usage

add_filter( 'enable_wp_debug_mode_checks', 'filter_function_name_7405' );
function filter_function_name_7405( $enable_debug_mode ){
	// filter...

	return $enable_debug_mode;
}
$enable_debug_mode(true|false)
Whether to enable debug mode checks to occur.
Default: true

Changelog

Since 4.6.0 Introduced.

Where the hook is called

wp_debug_mode()
enable_wp_debug_mode_checks
wp-includes/load.php 455
if ( ! apply_filters( 'enable_wp_debug_mode_checks', true ) ) {

Where in WP core the hook is used WordPress

Usage not found.