wp_is_home_url_using_https() – Checks whether the current site URL is using HTTPS.

You appear to be a bot. Output may be restricted

Description

Checks whether the current site URL is using HTTPS.

Usage

$bool = wp_is_home_url_using_https();

Parameters

Returns

bool True if using HTTPS, false otherwise.

Source

File name: wordpress/wp-includes/https-detection.php
Lines:

1 to 3 of 3
function wp_is_home_url_using_https() {
  return 'https' === wp_parse_url( home_url(), PHP_URL_SCHEME );
}
 

 View on GitHub View on Trac