Home › Forums › Backend Issues (wp-admin) › Show fields in backend by logged in user capability › Reply To: Show fields in backend by logged in user capability
Hi @rowatt
Your code above is perfectly fine and is a smart way to remove a specific field for a given block of logic.
Instead of doing this field by field, you can also create your own location rules. Location rules are used on a field group to toggle it’s display. Jump over to the docs to see a tutorial on creating your own location rule (one for specific capability)
Thanks
E
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.