Published on : August 04, 2020
Title | : | php.site_url | |||||||||
Purpose | : | Retrieves the URL for the current site. Returns the ‘site_url’ option with the appropriate protocol, ‘https’ if is_ssl() and ‘http’ otherwise. If parameter p2 (scheme) is ‘http’ or ‘https’, is_ssl() is overridden. | |||||||||
Syntax | : | [php.site_url p1=’path’ p2=’scheme’ o.set=variable name /] | |||||||||
Input Parameters | : |
|
|||||||||
Return Value | : | Site URL link with appended path (if passed in p1). | |||||||||
Example 1 | : |
|
|||||||||
Example 2 | : |
|
|||||||||
Example 3 | : |
|