Optionally block uploads processed through Jetpack’s upload_handler(). The filter may return false or WP_Error to block this particular upload.
Parameters
- $allowed
(bool | WP_Error) If false or WP_Error, block the upload. If true, allow the upload.
- $_FILES
mixed The $_FILES attempting to be uploaded.
Changelog
- Introduced in Jetpack 10.8