Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren

pre_move_uploaded_file ›

apply_filters( 'pre_move_uploaded_file', null, $file, $new_file, $type )
Parameter: (4)
  • (mixed) $move_new_file If null (default) move the file after the upload.
    Erforderlich: Ja
  • (string[]) $file An array of data for a single file.
    Erforderlich: Ja
  • (string) $new_file Filename of the newly-uploaded file.
    Erforderlich: Ja
  • (string) $type File type.
    Erforderlich: Ja
Definiert in:

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

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


$move_new_file = apply_filters( 'pre_move_uploaded_file', null, $file, $new_file, $type );