apply_filters( 'pre_move_uploaded_file', string $move_new_file, string $file, string $new_file, string $type )

Filters whether to short-circuit moving the uploaded file after passing all checks.

Description Description

If a non-null value is passed to the filter, moving the file and any related error reporting will be completely skipped.

Parameters Parameters


(string) If null (default) move the file after the upload.


(string) An array of data for a single file.


(string) Filename of the newly-uploaded file.


(string) File type.

Top ↑

Source Source

File: wp-admin/includes/file.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.