WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about pre_upload_error

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-xmlrpc-server.php apply_filters 6411 /**
* 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.
*
* @since 2.1.0
*
* @param bool $error Whether to pre-empt the media upload. Default false.
*/

Hook Parameters

Parameter Type Name Description
bool $error Whether to pre-empt the media upload. Default false.