site_url

FUNCTION wp-includes\link-template.php (ligne 3485) github
Filters the home URL.

Paramètres

Entrée :
$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

// Utilisation de la fonction site_url
$result = site_url($path = '', $scheme = null);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...