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’.
Description Description
Return Return
(bool)
Source Source
File: includes/wc-conditional-functions.php
function wc_site_is_https() { return false !== strstr( get_option( 'home' ), 'https:' ); }
Changelog Changelog
Version | Description |
---|---|
2.4.13 | Introduced. |