Home › Forums › Feature Requests › New Conditional Logic Option: User Role › Reply To: New Conditional Logic Option: User Role
As I think of this, I would really like a hook that asked if a field would display and if it could be saved. That would make it easy for us to a capability check in there, but also to add some other logic.
@will If I understand your gist, it just hides the option, leaving it open to security issues. I think I saw and ‘update’ hook and ‘validation’ hook. Maybe I could force the data always revert to saved state. Sounds super fragile.
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.