A WordPress-centric search engine for devs and theme authors



site_url ›

Since2.7.0
Deprecatedn/a
apply_filters( 'site_url', $url, $path, $scheme, $blog_id )
Parameters: (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
Defined at:
Codex:

Filters the site URL.





Source

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