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