Per User Upload Prefilter
add_filter(‘wp_handle_upload_prefilter’, ‘per_user_upload_prefilter’); function per_user_upload_prefilter($errors) { if( ( isset( $_REQUEST[‘action’] ) && ( “um_resize_image” == $_REQUEST[‘action’] || “um_imageupload” == $_REQUEST[‘action’] ) ) || isset( $_REQUEST[‘um_action’] ) ){ return $errors; } // in this filter we add a WP filter that alters…Continue reading