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



pre_upload_error ›

Seit2.1.0
Veraltetn/v
apply_filters( 'pre_upload_error', false )
Parameter:
  • (bool) $error Whether to pre-empt the media upload. Default false.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether to preempt the XML-RPC media upload.

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





Quellcode

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