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://


Top ↑

Source Source

File: includes/common/functions.php

function bbp_get_url_scheme() {
	return is_ssl()
		? 'https://'
		: 'http://';
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.