woocommerce_cookie filter-hookWC 3.6.0

Filter the cookie name.

Usage

add_filter( 'woocommerce_cookie', 'wp_kama_woocommerce_cookie_filter' );

/**
 * Function for `woocommerce_cookie` filter-hook.
 * 
 * @param string $cookie Cookie name.
 *
 * @return string
 */
function wp_kama_woocommerce_cookie_filter( $cookie ){

	// filter...
	return $cookie;
}
$cookie(string)
Cookie name.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

WC_Session_Handler::__construct()
woocommerce_cookie
woocommerce/includes/class-wc-session-handler.php 72
$this->_cookie = (string) apply_filters( 'woocommerce_cookie', 'wp_woocommerce_session_' . COOKIEHASH );

Where the hook is used in WooCommerce

Usage not found.