acf/update_value хук-фильтр . ACF 1.0
Filters the $value before it is updated.
*
- @date 28/09/13
-
@since 5.0.0
- @param mixed $value The value to update.
- @param string $post_id The post ID for this value.
- @param array $field The field array.
- @param mixed $original The original value before modification.
Использование
add_filter( 'acf/update_value', 'filter_function_name_8379', 10, 4 ); function filter_function_name_8379( $value, $post_id, $field, $value ){ // filter... return $value; }
- $value
- -
- $post_id
- -
- $field
- -
- $value
- -
Где вызывается хук
acf/update_value
acf/includes/acf-value-functions.php 185
$value = apply_filters( "acf/update_value", $value, $post_id, $field, $value );