acf/load_reference хук-фильтр . ACF 5.7.11
Filters the reference value.
Использование
add_filter( 'acf/load_reference', 'filter_function_name_2497', 10, 3 ); function filter_function_name_2497( $reference, $field_name, $post_id ){ // filter... return $reference; }
- $reference(строка)
- The reference value.
- $field_name(строка)
- The field name.
- $post_id(число/строка)
- The post ID where meta is stored.
Список изменений
С версии 5.7.11 | Введена. |
Где вызывается хук
acf/load_reference
acf/includes/acf-value-functions.php 39
return apply_filters( "acf/load_reference", $reference, $field_name, $post_id );