wp_is_home_url_using_https()
Checks whether the current site URL is using HTTPS.
Хуков нет.
Возвращает
bool. True if using HTTPS, false otherwise.
Использование
wp_is_home_url_using_https();
Заметки
| Смотрите: home_url() |
Список изменений
| С версии 5.7.0 | Введена. |
Код wp_is_home_url_using_https() wp is home url using https WP 7.1
function wp_is_home_url_using_https() {
return 'https' === wp_parse_url( home_url(), PHP_URL_SCHEME );
}