wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_is_home_url_using_https › WordPress Function

Desde5.7.0
Obsoleton/a
wp_is_home_url_using_https ( Sem parâmetros )
Ver:
Retorna:
  • (bool) True if using HTTPS, false otherwise.
Definido em:
Codex:

Checks whether the current site URL is using HTTPS.



Fonte

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