Home › Forums › ACF PRO › Display/Hide tabs (and their child fields) by user role? › Reply To: Display/Hide tabs (and their child fields) by user role?
Hi @charles9
Unfortunately no there’s currently no option to show or hide specific fields or tabs depending on the users role.
However I think you could do this yourself with a bit of custom Javascript..
You’d have to do an AJAX call when a page loads to first fetch the role of the current user. Then in JS you can just hide the fields you don’t want them to see depending on the returned role.
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.