acf/load_reference хук-фільтрACF 5.7.11

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 );

Де використовується хук в Advanced Custom Fields

Використання не знайдено.

Залишити відповідь

Ваша e-mail адреса не оприлюднюватиметься. Обов’язкові поля позначені *