Home › Forums › Backend Issues (wp-admin) › Conditionally registering field on acf/update_value › Reply To: Conditionally registering field on acf/update_value
I assumed this was to show the field in the admin. acf/prepare_field is called just before the field is shown in the admin and can be used to not show a field by returning false. You register the field as normal than you create a filter and in the filter you check the value of the other field and then you return the field or FALSE depending on that check.
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.