Automattic\WooCommerce\Blocks\Patterns

PTKPatternsStore::flush_or_fetch_patterns │ public │ WC 1.0

Resets the cached patterns when tracking is disabled and cancels old fetch jobs otherwise.

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

Хуков нет.

Возвращает

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

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

$PTKPatternsStore = new PTKPatternsStore();
$PTKPatternsStore->flush_or_fetch_patterns();

Код PTKPatternsStore::flush_or_fetch_patterns() WC 11.3.0

public function flush_or_fetch_patterns() {
	if ( $this->allowed_tracking_is_enabled() ) {
		$this->cancel_fetch_patterns_when_ready();
		return;
	}

	$this->flush_cached_patterns();
}