WC_Admin_Notices::is_ssl()protected staticWC 3.5.1

Determine if the store is running SSL.

Method of the class: WC_Admin_Notices{}

No Hooks.

Return

true|false. Flag SSL enabled.

Usage

$result = WC_Admin_Notices::is_ssl();

Changelog

Since 3.5.1 Introduced.

WC_Admin_Notices::is_ssl() code WC 8.6.1

protected static function is_ssl() {
	$shop_page = wc_get_page_permalink( 'shop' );

	return ( is_ssl() && 'https' === substr( $shop_page, 0, 5 ) );
}