acf/fields/taxonomy/result
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
(масив) - field settings.
-
$post_id
(int|рядок) - The post_id being edited.
список змін
З версії 5.0.0 | Введено. |
Де викликається хук
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
Використання не знайдено.