fbpx
  1. Vitalie
  2. Pres-sale questions about WP Media Folder
  3. Tuesday, September 08 2020
  4.  Subscribe via email
it is possible to restrict non-admin authors level from deleting their own uploaded files????
right click also...
Thanks!
Responses (3)
Accepted AnswerPending Moderation
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,
Accepted AnswerPending Moderation
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!
Accepted AnswerPending Moderation
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.
Be one of the first to reply to this post!