acf/pre_format_value хук-фильтрACF 5.0.0

acf_format_value

Returns a formatted version of the provided value.

Использование

add_filter( 'acf/pre_format_value', 'wp_kama_acf_pre_format_value_filter', 10, 3 );

/**
 * Function for `acf/pre_format_value` filter-hook.
 * 
 * @param mixed      $value   The field value.
 * @param int|string $post_id The post id.
 * @param            $field   
 *
 * @return mixed
 */
function wp_kama_acf_pre_format_value_filter( $value, $post_id, $field ){

	// filter...
	return $value;
}
$value(разное)
The field value.
$post_id(int|строка)
The post id.
$field
-

Список изменений

С версии 5.0.0 Введена.

Где вызывается хук

acf_format_value()
acf/pre_format_value
acf/includes/acf-value-functions.php 148
$check = apply_filters( 'acf/pre_format_value', null, $value, $post_id, $field );

Где используется хук в Advanced Custom Fields PRO

Использование не найдено.