woocommerce_set_cookie_enabled

woocommerce_set_cookie_enabled

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_set_cookie_enabled') is found 1 times:

  • /includes/wc-core-functions.php line 1056
    	 * @param string  $value              Cookie value.
    	 * @param integer $expire             When the cookie should expire.
    	 * @param bool    $secure             If the cookie should only be served over HTTPS.
    	 */
    	if ( ! apply_filters( 'woocommerce_set_cookie_enabled', true, $name, $value, $expire, $secure ) ) {
    		return;
    	}
    
    	if ( ! headers_sent() ) {
    		/**
    		 * Controls the options to be specified when setting the cookie.