Home › Forums › ACF PRO › Gallery field hide media library › Reply To: Gallery field hide media library
The if ( ! current_user_can( 'level_5' ) ) {
conditional will prevent this from affecting administrators. For other users everything they will do is on the front end, but if they did have admin access it would be good to limit the images there as well.
Thanks
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.