Switch language

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




home_url [ WordPress Function ]

home_url ( $path = '', $scheme = null )
Parameters:
  • (string) $path (optional) Path relative to the home url.
  • (string) $scheme (optional) Scheme to give the home url context. Currently 'http', 'https', or 'relative'.
Uses:
Returns:
  • (string) Home url link with optional path appended.
Defined at:



Retrieve the home url for the current site.

Returns the 'home' 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 home_url$path ''$scheme null ) {
    return 
get_home_url(null$path$scheme);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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