Automattic\WooCommerce\Blocks\Domain\Services
Hydration::restore_cached_store_notices()
Restore notices into current session from cache.
Метод класса: Hydration{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->restore_cached_store_notices();
Код Hydration::restore_cached_store_notices() Hydration::restore cached store notices WC 9.6.1
protected function restore_cached_store_notices() { if ( ! did_action( 'woocommerce_init' ) || null === WC()->session ) { return; } WC()->session->set( 'wc_notices', $this->cached_store_notices ); $this->cached_store_notices = array(); }