acf/fields/taxonomy/result filter-hookACF 5.0.0

Filters the term title.

Usage

add_filter( 'acf/fields/taxonomy/result', 'wp_kama_acf_fields_taxonomy_result_filter', 10, 4 );

/**
 * Function for `acf/fields/taxonomy/result` filter-hook.
 * 
 * @param string     $title   The term title.
 * @param WP_Term    $term    The term object.
 * @param array      $field   The field settings.
 * @param int|string $post_id The post_id being edited.
 *
 * @return string
 */
function wp_kama_acf_fields_taxonomy_result_filter( $title, $term, $field, $post_id ){
	// filter...
	return $title;
}
$title(string)
The term title.
$term(WP_Term)
The term object.
$field(array)
The field settings.
$post_id(int|string)
The post_id being edited.

Changelog

Since 5.0.0 Introduced.

Where the hook is called

acf_field_taxonomy::get_term_title()
acf/fields/taxonomy/result
acf/includes/fields/class-acf-field-taxonomy.php 240
return apply_filters( 'acf/fields/taxonomy/result', $title, $term, $field, $post_id );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.