WordPress at Your Fingertips
function is not described

WC_Cache_Helper::init() public WC 1.0

Hook in methods.

{} It's a method of the class: WC_Cache_Helper{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Cache_Helper::init();

Code of WC_Cache_Helper::init() WC 5.9.0

public static function init() {
	add_filter( 'nocache_headers', array( __CLASS__, 'additional_nocache_headers' ), 10 );
	add_action( 'shutdown', array( __CLASS__, 'delete_transients_on_shutdown' ), 10 );
	add_action( 'template_redirect', array( __CLASS__, 'geolocation_ajax_redirect' ) );
	add_action( 'wc_ajax_update_order_review', array( __CLASS__, 'update_geolocation_hash' ), 5 );
	add_action( 'admin_notices', array( __CLASS__, 'notices' ) );
	add_action( 'delete_version_transients', array( __CLASS__, 'delete_version_transients' ), 10 );
	add_action( 'wp', array( __CLASS__, 'prevent_caching' ) );
	add_action( 'clean_term_cache', array( __CLASS__, 'clean_term_cache' ), 10, 2 );
	add_action( 'edit_terms', array( __CLASS__, 'clean_term_cache' ), 10, 2 );
}