Filters the home URL.
$path = '', $scheme = null
Sortie :
@param string $url The complete home URL including scheme and path. @param string $path Path relative to the home URL. Blank string if no path is specified. @param string|null $orig_scheme Scheme to give the home URL context. Accepts 'http', 'https', @param int|null $blog_id Site ID, or null for the current site. @param string $path Optional. Path relative to the site URL. Default empty. @param string|null $scheme Optional. Scheme to give the site URL context. See set_url_scheme(). @return string Site URL link with optional path appended.
// Utilisation de la fonction site_url
$result = site_url($path = '', $scheme = null);
if ($result) {
// Votre logique ici
}
Chargement des actualités...