deprecated_constructor_trigger_error
apply_filters( ‘deprecated_constructor_trigger_error’, bool $trigger )
过滤器::筛选是否为不推荐的函数触发错误。
Filter Hook: Filters whether to trigger an error for deprecated functions.
说明(Description)
WP_DEBUG必须为true,并且筛选器计算结果必须为true。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$trigger | (bool) | 是否触发已弃用函数的错误。默认为真。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.3.0 | wp-includes/functions.php:4794 | 1 | 0 |
deprecated_constructor_trigger_error 为WP2原创文章,链接:https://www.wp2.cn/hook/deprecated_constructor_trigger_error/