acf/fields/taxonomy/result хук-фильтрACF 5.0.0

Filters the term title.

Использование

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(строка)
The term title.
$term(WP_Term)
The term object.
$field(массив)
The field settings.
$post_id(int|строка)
The post_id being edited.

Список изменений

С версии 5.0.0 Введена.

Где вызывается хук

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

Где используется хук в Advanced Custom Fields PRO

Использование не найдено.