wp_is_using_https
wp_is_using_https ( No parameters )
See:Returns:- (bool) True if using HTTPS, false otherwise.
Defined at: - Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Description
Checks whether the website is using HTTPS.This is based on whether both the home and site URL are using HTTPS.