Direct Upload Filters and Actions



Overrides the setting for the maximum number of uploads.

add_filter('media-cloud/direct-uploads/max-uploads', function($maxUploads) {
    return min(4, $maxUploads);



After files have been uploaded with Direct Upload, this action is called with the attachment IDs so that other tools can process the attachments.

add_action('media-cloud/direct-uploads/process-batch', function($postIds) {
    // Do something with the post IDs.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us