bbp_get_url_scheme()
Get scheme for a URL based on is_ssl() results.
Description Description
Return Return
(string) https:// if is_ssl(), otherwise http://
Source Source
File: includes/common/functions.php
function bbp_get_url_scheme() { return is_ssl() ? 'https://' : 'http://'; }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |