WC_Cache_Helper::init()
Hook in methods.
Method of the class: WC_Cache_Helper{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WC_Cache_Helper::init();
WC_Cache_Helper::init() WC Cache Helper::init code WC 8.7.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 ); }