woocommerce_cookie
Constructor for the session class.
Usage
add_filter( 'woocommerce_cookie', 'wp_kama_woocommerce_cookie_filter' ); /** * Function for `woocommerce_cookie` filter-hook. * * @param $string * * @return */ function wp_kama_woocommerce_cookie_filter( $string ){ // filter... return $string; }
- $string
- -
Where the hook is called
woocommerce_cookie
woocommerce/includes/class-wc-session-handler.php 61
$this->_cookie = apply_filters( 'woocommerce_cookie', 'wp_woocommerce_session_' . COOKIEHASH );