wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



pre_upload_error › WordPress Filter Hooks

Da2.1.0
Deprecaton/a
› apply_filters( 'pre_upload_error', false )
Parametri:
  • () error Error message to return instead of uploading, or false to allow the upload. Default false.
    Richiesto: Sì
Definito a:
Codex:

Filters whether to preempt the XML-RPC media upload.

Returning a truthy value will effectively short-circuit the media upload, returning that value as a 500 error instead.




Sorgenti

$upload_err = apply_filters( 'pre_upload_error', false );