acf/fields/relationship/result/name=(name)
Использование
add_filter( 'acf/fields/relationship/result/name=(name)', 'wp_kama_acf_fields_relationship_result_name_filter', 10, 4 ); /** * Function for `acf/fields/relationship/result/name=(name)` filter-hook. * * @param $title * @param $post * @param $field * @param $post_id * * @return */ function wp_kama_acf_fields_relationship_result_name_filter( $title, $post, $field, $post_id ){ // filter... return $title; }
- $title
- -
- $post
- -
- $field
- -
- $post_id
- -
Где вызывается хук
acf/fields/relationship/result/name=(name)
acf/includes/fields/class-acf-field-relationship.php 353
$title = apply_filters( 'acf/fields/relationship/result/name=' . $field['_name'], $title, $post, $field, $post_id );