wc_site_is_https()
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
.
Usage
wc_site_is_https();
Changelog
Since 2.4.13 | Introduced. |
wc_site_is_https() wc site is https code WC 9.3.3
function wc_site_is_https() { return false !== strstr( get_option( 'home' ), 'https:' ); }