Automattic\WooCommerce\Internal\Admin\Suggestions\Incentives

WooPayments::clear_cache()publicWC 1.0

Clear the incentives cache.

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

Хуков нет.

Возвращает

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

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

$WooPayments = new WooPayments();
$WooPayments->clear_cache();

Код WooPayments::clear_cache() WC 9.6.1

public function clear_cache() {
	delete_transient( $this->cache_transient_name );
	$this->reset_memo();
}