Un motore di ricerca WordPress per sviluppatori e autori di temi



pre_move_uploaded_file ›

Da4.9.0
Deprecaton/a
apply_filters( 'pre_move_uploaded_file', null, $file, $new_file, $type )
Parametri: (4)
  • (mixed) $move_new_file If null (default) move the file after the upload.
    Richiesto:
  • (string[]) $file An array of data for a single file.
    Richiesto:
  • (string) $new_file Filename of the newly-uploaded file.
    Richiesto:
  • (string) $type File type.
    Richiesto:
Definito a:
Codex:

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.





Sorgenti

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