acf_field_google_map::update_value
This filter is appied to the $value before it is updated in the db
Метод класса: acf_field_google_map{}
Хуков нет.
Возвращает
$value. - the modified value
Использование
$acf_field_google_map = new acf_field_google_map(); $acf_field_google_map->update_value( $value, $post_id, $field );
- $value(обязательный)
- .
- $post_id(обязательный)
- .
- $field(обязательный)
- .
Список изменений
| С версии 3.6 | Введена. |
Код acf_field_google_map::update_value() acf field google map::update value ACF 6.4.2
function update_value( $value, $post_id, $field ) {
// decode JSON string.
if ( is_string( $value ) ) {
$value = json_decode( wp_unslash( $value ), true );
}
// Ensure value is an array.
if ( $value ) {
return (array) $value;
}
// Return default.
return false;
}