woocommerce_set_cookie_enabled

woocommerce_set_cookie_enabled

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_set_cookie_enabled') is found 1 times:

  • /includes/wc-core-functions.php line 1076
    	 * @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.