wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_is_using_https › WordPress Function

Depuis5.7.0
Dépréciéen/a
wp_is_using_https ( Pas de paramètres )
Voir:
Retourne:
  • (bool) True if using HTTPS, false otherwise.
Défini(e) dans:
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();
}