Automattic\WooCommerce\Internal\ComingSoon
ComingSoonCacheInvalidator::init()
Sets up the hooks.
Method of the class: ComingSoonCacheInvalidator{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ComingSoonCacheInvalidator = new ComingSoonCacheInvalidator(); $ComingSoonCacheInvalidator->init();
ComingSoonCacheInvalidator::init() ComingSoonCacheInvalidator::init code WC 9.3.3
final public function init() { add_action( 'update_option_woocommerce_coming_soon', array( $this, 'invalidate_caches' ) ); add_action( 'update_option_woocommerce_store_pages_only', array( $this, 'invalidate_caches' ) ); }