Home › Forums › ACF PRO › Choose wordpress tags shown in ACF field taxonomy (= do not show every term) › Reply To: Choose wordpress tags shown in ACF field taxonomy (= do not show every term)
$field name is your field’s name so you would use
10 in the example is the filter priority, this is the order that the filter runs in compared to all other filters for the same hook.
3 is the number variables passed to your filter, in this case
($args, $field, $post_id)
I really can’t give you specifics of what you need to add to
$args because I don’t know how you want to determine what terms in the taxonomy shouldn’t be shown. What you really need to do is figure that out from the WP documentation for
get_terms() https://developer.wordpress.org/reference/functions/get_terms/ which is linked to from the page I gave you the link to, as well as information on this page https://developer.wordpress.org/reference/classes/wp_term_query/__construct/ that explains all of the arguments you can supply for
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!
© 2022 Advanced Custom Fields.