Direct Upload Filters and Actions
Filters
media-cloud/direct-uploads/max-uploads
Overrides the setting for the maximum number of uploads.
add_filter('media-cloud/direct-uploads/max-uploads', function($maxUploads) {
return min(4, $maxUploads);
});
Actions
media-cloud/direct-uploads/process-batch
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.
});