Home › Forums › Backend Issues (wp-admin) › A filter for taxonomy field › Reply To: A filter for taxonomy field
Looking at the taxonomy field type file, on line 205 you will see this line of code:
// vars
$args = array(
'taxonomy' => $field['taxonomy'],
'hide_empty' => false,
'style' => 'none',
'walker' => new acf_taxonomy_field_walker( $field ),
);
$args = apply_filters('acf/fields/taxonomy/wp_list_categories', $args, $field );
Using this filter, you can customize the $args. These $args are later used on line 238 in the function wp_list_categories. If you check out this function on WordPress, you will see that there are some params which ‘exclude’.
Thanks
E
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!
Our guide looks into WordPress custom fields and how they stack up against the possibilities of ACF.
— Advanced Custom Fields (@wp_acf) July 18, 2022
https://t.co/hk3yibkHyk
© 2022 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.