Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




site_url [ WordPress Function ]

site_url ( $path = '', $scheme = null )
Parameters:
  • (string) $path Optional. Path relative to the site url.
  • (string) $scheme Optional. Scheme to give the site url context. Currently 'http', 'https', 'login', 'login_post', 'admin', or 'relative'.
Uses:
Returns:
  • (string) Site url link with optional path appended.
Defined at:



Retrieve the site url for the current site.

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.

Source


<?php
function site_url$path ''$scheme null ) {
    return 
get_site_url(null$path$scheme);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics