Home › Forums › General Issues › How to use the taxonomy/result filter? › Reply To: How to use the taxonomy/result filter?
Hello
I’m trying to use the acf/fields/taxonomy/result/ filter, but without any result.
Even if I enter a simple test code like this:
function tp_taxonomy_result( $title, $post, $field, $post_id ){
$title = 'test text';
return $title;
}
add_filter('acf/fields/taxonomy/result/key=field_5a046d4c673af', 'tp_taxonomy_result', 10, 4);
I do not get any results in my taxonomy box.
Any idea why the filter does not seem to work?
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.