acf_flush_value_cache()
acf_flush_value_cache
Deletes all cached data for this value.
Хуков нет.
Возвращает
null
. Ничего.
Использование
acf_flush_value_cache( $post_id, $field_name );
- $post_id((int|string))
- The post id.
- $field_name(строка)
- The field name.
По умолчанию: ''
Список изменений
С версии 5.7.10 | Введена. |
Код acf_flush_value_cache() acf flush value cache ACF 6.0.4
function acf_flush_value_cache( $post_id = 0, $field_name = '' ) { // Delete stored data. acf_get_store( 'values' ) ->remove( "$post_id:$field_name" ) ->remove( "$post_id:$field_name:formatted" ); }