Home › Forums › ACF PRO › After update from 4 => 5, where is everything_fields.php › Reply To: After update from 4 => 5, where is everything_fields.php
It works now. I peeked a bit in the code of the class \acf_form_taxonomy
. There are two methods which were added since version 5, add_term
and edit_term
. There are also two actions defined in which you can hook into: {$taxonomy}_add_form_fields
and {$taxonomy}_edit_form
.
I am using now the actions to determine which term is currently viewed. I save the current term in the $GLOBAS
variable (current hotfix only).
Next, I am using the acf/load_field/name={$field_name}
filter which checks the previously defined term in the $GLOBALS
variable on which level we are and to determine if we display the current field or not.
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.