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