Home › Forums › Backend Issues (wp-admin) › Adding conditional logic in PHP for fields designed in backend › Reply To: Adding conditional logic in PHP for fields designed in backend
If the field are added with the UI then this is usually the place to add conditional logic.
Conditional logic can be altered in PHP by using an acf/prepare_field filter.
The best way to see how the conditional logic argument is constructed it to create some fields with conditional logic and export them to PHP.
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.