deprecated_constructor_run
do_action( ‘deprecated_constructor_run’, string $class , string $version , string $parent_class )
动作钩子::在调用不推荐使用的构造函数时激发。
Action Hook: Fires when a deprecated constructor is called.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$class | (string) | 包含不推荐使用的构造函数的类。 |
$version | (string) | 不赞成使用该函数的WordPress版本。 |
$parent_class | (string) | 调用已弃用构造函数的父类。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.5.0 | wp-includes/functions.php:4783 | 1 | 0 |
deprecated_constructor_run 为WP2原创文章,链接:https://www.wp2.cn/hook/deprecated_constructor_run/