WordPress at Your Fingertips
function is not described

wp_is_home_url_using_https() WP 5.7.0

Checks whether the current site URL is using HTTPS.

No Hooks.

Return

true|false. True if using HTTPS, false otherwise.

Usage

wp_is_home_url_using_https();

Notes

Changelog

Since 5.7.0 Introduced.

Code of wp_is_home_url_using_https() WP 5.8

<?php
function wp_is_home_url_using_https() {
	return 'https' === wp_parse_url( home_url(), PHP_URL_SCHEME );
}