woocommerce_cookie filter-hookWC 1.0

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

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

Where the hook is used in WooCommerce

Usage not found.