wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_upload_error › Filtr WordPress Hooks

Od2.1.0
Przestarzałyn/a
› apply_filters( 'pre_upload_error', false )
Parametry:
  • () error Error message to return instead of uploading, or false to allow the upload. Default false.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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