apply_filters( ‘pre_move_uploaded_file’, mixed $move_new_file, string[] $file, string $new_file, string $type )
过滤钩子:过滤所有检查通过后是否短路移动上传的文件。
Filter Hook: Filters whether to short-circuit moving the uploaded file after passing all checks.
如果将非空值传递给筛选器,则将完全跳过移动文件和任何相关的错误报告。
参数 | 类型 | 说明 |
---|---|---|
$move_new_file | (mixed) | 如果为空(默认值),则在上载后移动文件。 |
$file | (string[]) | 单个文件的数据数组。 |
$new_file | (string) | 新上载文件的文件名。 |
$type | (string) | 文件类型。 |
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.9.0 | wp-admin/includes/file.php:876 | 1 | 0 |