wpseek.com
A WordPress-centric search engine for devs and theme authors
site_url › WordPress Function
Since3.0.0
Deprecatedn/a
› site_url ( $path = '', $scheme = null )
Parameters: (2) |
|
Returns: |
|
Defined at: |
|
Codex: |
Retrieves the URL for the current site where WordPress application files (e.g. wp-blog-header.php or the wp-admin/ folder) are accessible.
Returns the 'site_url' option with the appropriate protocol, 'https' if is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is overridden.