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);
}