acf/pre_update_value filter-hookACF 5.0.0

acf_update_value

Updates the value for a given field and post_id.

Usage

add_filter( 'acf/pre_update_value', 'wp_kama_acf_pre_update_value_filter', 10, 3 );

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

Changelog

Since 5.0.0 Introduced.

Where the hook is called

acf_update_value()
acf/pre_update_value
acf/includes/acf-value-functions.php 228
$check = apply_filters( 'acf/pre_update_value', null, $value, $post_id, $field );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.