Support

Account

Home Forums Feature Requests Filter for taxonomy term names Reply To: Filter for taxonomy term names

  • Hi @timothy_h

    In ACF PRO (not sure what version I added the filter in), you can modify the ‘text’ of each result via the filter:
    acf/fields/taxonomy/result

    This is how ACF uses the filter:

    
    // filters
    		$title = apply_filters('acf/fields/taxonomy/result', $title, $term, $field, $post_id);
    		$title = apply_filters('acf/fields/taxonomy/result/name=' . $field['_name'] , $title, $term, $field, $post_id);
    		$title = apply_filters('acf/fields/taxonomy/result/key=' . $field['key'], $title, $term, $field, $post_id);
    

    Hope that helps

    Thanks
    E