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'.
Хуков нет.
Возвращает
true/false.
Использование
wc_site_is_https();
Список изменений
С версии 2.4.13 | Введена. |
Код wc_site_is_https() wc site is https WC 5.0.0
function wc_site_is_https() {
return false !== strstr( get_option( 'home' ), 'https:' );
}