Home › Forums › Backend Issues (wp-admin) › fields to show based on user role? › Reply To: fields to show based on user role?
This can be done using an acf/prepare_field filter. You compare the current user with what you want to allow and then return the field if it should be shown or false if you don’t want it shown. Basically you would have to add this filter for the tab field and each of the fields in that tab that you don’t want shown.
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.