acf/pre_format_value filter-hookACF 5.0.0

Returns a formatted version of the provided value.

Usage

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

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

Changelog

Since 5.0.0 Introduced.

Where the hook is called

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

Where the hook is used in Advanced Custom Fields PRO

Usage not found.