wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
enable_wp_debug_mode_checks › Hooks de Filtros WordPress
Desde4.6.0
Obsoleton/a
› apply_filters( 'enable_wp_debug_mode_checks', true )
Parâmetros: |
|
Definido em: |
|
Codex: |
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 runtimes. 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;
},
),
),
),
);
Funções relacionadas: wp_debug_mode, wp_category_checklist, wp_terms_checklist, network_domain_check, wp_version_check, excerpt_remove_blocks
Hooks relacionados: enable_maintenance_mode, enable_loading_object_cache_dropin, enable_loading_advanced_cache_dropin