Automattic\WooCommerce\Blocks\Domain\Services
Hydration::restore_cached_store_notices()
Restore notices into current session from cache.
Method of the class: Hydration{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->restore_cached_store_notices();
Hydration::restore_cached_store_notices() Hydration::restore cached store notices code WC 9.7.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(); }