Support

Account

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.

    taxonomy box

    Any idea why the filter does not seem to work?