Used By
Used By | Description |
---|---|
wp-includes/class-wp-xmlrpc-server.php: wp_xmlrpc_server::mw_newMediaObject() | Uploads a file, following your settings. |
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.
(bool) Whether to pre-empt the media upload. Default false.
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_upload_error