deprecated_hook_run
do_action( ‘deprecated_hook_run’, string $hook , string $replacement , string $version , string $message )
动作钩子::在调用不推荐使用的钩子时激发。
Action Hook: Fires when a deprecated hook is called.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$hook | (string) | 被称为钩子。 |
$replacement | (string) | 应该用作替代品的钩。 |
$version | (string) | 不赞成使用参数的WordPress版本。 |
$message | (string) | 关于变化的信息。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.6.0 | wp-includes/functions.php:5066 | 1 | 0 |
deprecated_hook_run 为WP2原创文章,链接:https://www.wp2.cn/hook/deprecated_hook_run/