Home › Forums › General Issues › Hide user custom fields from non-administrators › Reply To: Hide user custom fields from non-administrators
I will be adding this functionality in soon, but for now, you can use a filter called load_field. This is documented over on the docs page.
If you hook into the load_field filter and return false, the field will net be rendered. Therefore, within the filter, you can run some logic to look at the logged in user and return false if needed.
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.