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



wp_is_using_https › WordPress Function

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

Checks whether the website is using HTTPS.

This is based on whether both the home and site URL are using HTTPS.


Source

function wp_is_using_https() {
	if ( ! wp_is_home_url_using_https() ) {
		return false;
	}

	return wp_is_site_url_using_https();
}