wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



pre_upload_error › Les Filtres WordPress

Depuis2.1.0
Dépréciéen/a
› apply_filters( 'pre_upload_error', false )
Paramètres:
  • () error Error message to return instead of uploading, or false to allow the upload. Default false.
    Requis: Oui
Défini(e) dans:
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.




Source

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