Home › Forums › Front-end Issues › How to setup user right to delete media? › Reply To: How to setup user right to delete media?
There isn’t any way to give subscribers the ability to delete media files without giving them access to the media library admin.
There are plugins that will allow this like https://wordpress.org/plugins/capability-manager-enhanced/
But this will give them the ability to delete any file, which I think you do not want to do. You will also need to create an pre_get_posts filter that runs in the admin when loading media files that only shows files that are uploaded by the user if they are a subscriber. https://www.wpbeginner.com/plugins/how-to-restrict-media-library-access-to-users-own-uploads-in-wordpress/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.