Filter hook 'pre_upload_error'
in WP Core File wp-includes/class-wp-xmlrpc-server.php at line 6428
Description
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.
Occurrences
Filename |
Line Number |
wp-includes/class-wp-xmlrpc-server.php |
6428 |
Parameters
Type |
Name |
Description |
bool |
$error |
Whether to pre-empt the media upload. Default false. |
PHP Doc
/**
* 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.
*/