Summery Summery

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

Syntax Syntax

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

Description Description

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

Parameters Parameters


(mixed) 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) Mime type of the newly-uploaded file.

Source Source

File: wp-admin/includes/file.php


Changelog Changelog

Version Description
4.9.0 Introduced.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.