WC_Widget::flush_widget_cache()publicWC 1.0

Flush the cache.

Метод класса: WC_Widget{}

Хуков нет.

Возвращает

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

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

$WC_Widget = new WC_Widget();
$WC_Widget->flush_widget_cache();

Код WC_Widget::flush_widget_cache() WC 8.7.0

public function flush_widget_cache() {
	foreach ( array( 'https', 'http' ) as $scheme ) {
		wp_cache_delete( $this->get_widget_id_for_cache( $this->widget_id, $scheme ), 'widget' );
	}
}