Filters whether to short-circuit moving the uploaded file after passing all checks.
If a non-null value is returned from the filter, moving the file and any related error reporting will be completely skipped.
$move_new_filemixed
$filearray
$_FILES.name stringtype stringtmp_name stringsize interror int$new_filestring
$typestring
$move_new_file = apply_filters( 'pre_move_uploaded_file', null, $file, $new_file, $type );
| Version | Description |
|---|---|
| 4.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_move_uploaded_file