acf_flush_internal_post_type_cache()ACF 6.1

Deletes all caches for the provided ACF post.

Хуков нет.

Возвращает

null. Ничего (null).

Использование

acf_flush_internal_post_type_cache( $post, $post_type );
$post(массив) (обязательный)
The ACF post array.
$post_type(строка) (обязательный)
The ACF post type the cache is being cleared for.

Список изменений

С версии 6.1 Введена.

Код acf_flush_internal_post_type_cache() ACF 6.4.2

function acf_flush_internal_post_type_cache( $post, $post_type ) {
	$instance = acf_get_internal_post_type_instance( $post_type );

	if ( $instance ) {
		$instance->flush_post_cache( $post );
	}
}