Disable drag and upload in Media Library

Question

Does any one knows a valid/standard way to disable drag and upload when accessing the media library in the admin area? In order to make this sense to you, I’m building a multisite and user of sub-site cannot upload media files but they can view.

I can remove their capability ‘upload_file’ but that would completely remove the media experience.

So far this is what I’ve got:

add_action('admin_init','disable_drag_upload');
function disable_drag_upload() {

    wp_deregister_script( 'wp-plupload' );
}

.. but that would skip the media library content.

0
, , Dbx 4 years 2020-02-22T08:38:37-05:00 0 Answers 82 views 0

Leave an answer

Browse
Browse