enable_wp_debug_mode_checks
apply_filters( ‘enable_wp_debug_mode_checks’, bool $enable_debug_mode )
筛选器挂钩:筛选是否允许进行调试模式检查。
Filter Hook: Filters whether to allow the debug mode check to occur.
说明(Description)
此筛选器在插件使用之前运行。它是为非web运行时设计的。返回false将导致不检查WP_DEBUG和相关常量,并且将使用错误的默认PHP值,除非您自己注意更新它们。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$enable_debug_mode | (bool) | 是否启用调试模式检查。默认为真。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.6.0 | wp-includes/load.php:323 | 1 | 0 |
enable_wp_debug_mode_checks 为WP2原创文章,链接:https://www.wp2.cn/hook/enable_wp_debug_mode_checks/