Automattic\WooCommerce\Blocks\Patterns

PTKPatternsStore::flush_cached_patterns │ public │ WC 10.4.1

Reset the cached patterns to fetch them again from the PTK.

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

Хуков нет.

Возвращает

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

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

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

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

С версии 10.4.1 Введена.
С версии 10.4.1 Unscheduling is deferred if Action Scheduler hasn't initialized yet.

Код PTKPatternsStore::flush_cached_patterns() WC 11.2.1

public function flush_cached_patterns() {
	delete_option( self::OPTION_NAME );

	$this->cancel_fetch_patterns_when_ready();
}