enable_wp_debug_mode_checks

过滤钩子
apply_filters( 'enable_wp_debug_mode_checks', true )
参数
  • (bool) $enable_debug_mode Whether to enable debug mode checks to occur. Default true.
    Required:
定义位置
相关勾子
enable_maintenance_modeenable_loading_object_cache_dropinenable_loading_advanced_cache_dropin
相关方法
wp_debug_modewp_category_checklistwp_terms_checklistnetwork_domain_checkwp_version_checkexcerpt_remove_blocks
引入
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 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;
                },
            ),
        ),
    ),
);
if ( ! apply_filters( 'enable_wp_debug_mode_checks', true ) ) {

常见问题

FAQs
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-18 23:27:38

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: