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



wp_is_home_url_using_https › WordPress Function

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