wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_is_using_https › WordPress Function

Od5.7.0
Przestarzałyn/a
wp_is_using_https ( Brak parametrów )
Zobacz:
Powrót:
  • (bool) True if using HTTPS, false otherwise.
Zdefiniowane na:
Codex:

Checks whether the website is using HTTPS.

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


Źródło

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

	return wp_is_site_url_using_https();
}