Skip to main content
  Tuesday, September 08 2020
  3 Replies
  2.2K Visits
  Subscribe
it is possible to restrict non-admin authors level from deleting their own uploaded files????
right click also...
Thanks!
A
3 years ago
Hi,

Thanks for contacting us here about this extension.

it is possible to restrict non-admin authors level from deleting their own uploaded files????
right click also...


Yes, it could be customized as your request. Please put the code below in "functions.php" file of your current theme.


add_action('init', 'wpmf_remove_author_capabilities');
function wpmf_remove_author_capabilities()
{
$author = get_role('author');
$author->remove_cap('delete_posts');
}


Hope it helps!
Kind regards,
V
3 years ago
Thank you very much but it doesn't worked for me, i have latest version of WP Media folder "Version 5.2.5" and after file upload in gread mode on right click apears a mini menu with options like "edit/remove/get link/move to / multi folders" like in imgur image attached

https://imgur.com/G1ByYdw
https://imgur.com/G1ByYdw

Kind regards!
A
3 years ago
Hi,

Thanks for getting back to me with more information.

i have latest version of WP Media folder "Version 5.2.5" and after file upload in gread mode on right click apears a mini menu with options like "edit/remove/get link/move to / multi folders" like in imgur image attached


Yes, the code is served for the quick modification. The Remove button still remains but it will not work when clicking on.
For further customization, please drop us a ticket (menu Support > Support ticket), our developer in charge will help you in details.

Thanks a lot!
Kind regards,
  • Page :
  • 1
There are no replies made for this post yet.