acf/load_reference
Filters the reference value.
Использование
add_filter( 'acf/load_reference', 'wp_kama_acf_load_reference_filter', 10, 3 ); /** * Function for `acf/load_reference` filter-hook. * * @param string $reference The reference value. * @param string $field_name The field name. * @param int|string $post_id The post ID where meta is stored. * * @return string */ function wp_kama_acf_load_reference_filter( $reference, $field_name, $post_id ){ // filter... return $reference; }
- $reference(строка)
- The reference value.
- $field_name(строка)
- The field name.
- $post_id(int|строка)
- 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 );