wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_is_home_url_using_https › WordPress Function

Since5.7.0
Deprecatedn/a
wp_is_home_url_using_https ( No parameters )
See:
Returns:
  • (bool) True if using HTTPS, false otherwise.
Defined at:
Codex:

Checks whether the current site URL is using HTTPS.



Source

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