Checks whether the current site URL is using HTTPS.

Description Description

Top ↑

See also See also

Top ↑

Return Return

(bool) True if using HTTPS, false otherwise.

Top ↑

Source Source

File: wp-includes/https-detection.php

function wp_is_home_url_using_https() {
	return 'https' === wp_parse_url( home_url(), PHP_URL_SCHEME );

Top ↑

Changelog Changelog

Version Description
5.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.