WordPress at a glance
function is not described

wc_site_is_https() WC 2.4.13

Check if the home URL is https. If it is, we don't need to do things such as 'force ssl'.

No Hooks.

Return

true|false. Nothing.

Usage

wc_site_is_https();

Changelog

Since 2.4.13 Introduced.

Code of wc_site_is_https() WC 5.2.2

<?php
function wc_site_is_https() {
	return false !== strstr( get_option( 'home' ), 'https:' );
}