51functionwp_is_site_url_using_https(){52/*53 * Use direct option access for 'siteurl' and manually run the 'site_url'54 * filter because `site_url()` will adjust the scheme based on what the55 * current request is using.56 */57/** This filter is documented in wp-includes/link-template.php */58$site_url=apply_filters('site_url',get_option('siteurl'),'',null,null);5960return'https'===wp_parse_url($site_url,PHP_URL_SCHEME);61}
History
Introduced in 5.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/https-detection.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.