Uma área de pesquisa sobre o WordPress para devs e autores do tema



site_url ›

Desde2.7.0
Obsoleton/a
apply_filters( 'site_url', $url, $path, $scheme, $blog_id )
Parâmetros: (4)
  • (string) $url The complete site URL including scheme and path.
    Required: Yes
  • (string) $path Path relative to the site URL. Blank string if no path is specified.
    Required: Yes
  • (string|null) $scheme Scheme to give the site URL context. Accepts 'http', 'https', 'login', 'login_post', 'admin', 'relative' or null.
    Required: Yes
  • (int|null) $blog_id Site ID, or null for the current site.
    Required: Yes
Definido em:
Codex:

Filters the site URL.





Fonte

return apply_filters( 'site_url', $url, $path, $scheme, $blog_id );