Automattic\WooCommerce\Internal\ComingSoon
ComingSoonCacheInvalidator::init
Sets up the hooks.
Method of the class: ComingSoonCacheInvalidator{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ComingSoonCacheInvalidator = new ComingSoonCacheInvalidator(); $ComingSoonCacheInvalidator->init();
ComingSoonCacheInvalidator::init() ComingSoonCacheInvalidator::init code WC 10.8.1
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' ) );
}