wc_session_use_secure_cookie

wc_session_use_secure_cookie

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('wc_session_use_secure_cookie') is found 1 times:

  • /includes/class-wc-session-handler.php line 204
    	 * @since 3.6.0
    	 * @return bool
    	 */
    	protected function use_secure_cookie() {
    		return apply_filters( 'wc_session_use_secure_cookie', wc_site_is_https() && is_ssl() );
    	}
    
    	/**
    	 * Return true if the current user has an active session, i.e. a cookie to retrieve values.
    	 *
    	 * @return bool