wp_is_using_https() – Checks whether the website is using HTTPS.
You appear to be a bot. Output may be restricted
Description
Checks whether the website is using HTTPS.
This is based on whether both the home and site URL are using HTTPS.
Usage
$bool = wp_is_using_https();
Parameters
Returns
bool True if using HTTPS, false otherwise.
Source
File name: wordpress/wp-includes/https-detection.php
Lines:
1 to 7 of 7
function wp_is_using_https() { if ( ! wp_is_home_url_using_https() ) { return false; } return wp_is_site_url_using_https(); }