WordPress at Your Fingertips
function is not described

WC_Session_Handler::use_secure_cookie() protected WC 3.6.0

Should the session cookie be secure?

{} It's a method of the class: WC_Session_Handler{}

Hooks from the method

Return

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->use_secure_cookie();

Changelog

Since 3.6.0 Introduced.

Code of WC_Session_Handler::use_secure_cookie() WC 5.9.0

protected function use_secure_cookie() {
	return apply_filters( 'wc_session_use_secure_cookie', wc_site_is_https() && is_ssl() );
}