WordPress at Your Fingertips
function is not described

WC_Admin_Notices::is_ssl() protected WC 3.5.1

Determine if the store is running SSL.

{} It's a 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.

Code of WC_Admin_Notices::is_ssl() WC 5.9.0

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

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