wp_is_home_url_using_https

The timeline below displays how wordpress function wp_is_home_url_using_https has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.7

/**
 * Checks whether the current site URL is using HTTPS.
 *
 * @since 5.7.0
 * @see home_url()
 *
 * @return bool True if using HTTPS, false otherwise.
 */
function wp_is_home_url_using_https()
{
    return 'https' === wp_parse_url(home_url(), PHP_URL_SCHEME);
}