pre_move_uploaded_file
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'pre_move_uploaded_file', mixed $move_new_file, array $file, string $new_file, string $type )
Описание
Если фильтр возвращает значение, отличное от null, перемещение файла и любое связанное с ним сообщение об ошибке будут полностью пропущены.
Оригинал (английский)
If a non-null value is returned from the filter, moving the file and any related error reporting will be completely skipped.
Фильтруемое значение
Параметры
$move_new_file
mixed
обязательный
$file
array
обязательный
$new_file
string
обязательный
$type
string
обязательный
Исходный код
wp-admin/includes/file.php:1012
$move_new_file = apply_filters( 'pre_move_uploaded_file', null, $file, $new_file, $type );
История изменений
| Версия | Описание |
|---|---|
| 4.9.0 | Introduced. |

