network_home_url

FUNCTION wp-includes\link-template.php (ligne 3756) github
Filters the network site URL.

Paramètres

Entrée :
$path = '', $scheme = null
Sortie :
@param string      $url    The complete network site URL including scheme and path.
@param string      $path   Path relative to the network site URL. Blank string if
@param string|null $scheme Scheme to give the URL context. Accepts 'http', 'https',
@param string      $path   Optional. Path relative to the home URL. Default empty.
@param string|null $scheme Optional. Scheme to give the home URL context. Accepts
@return string Home URL link with optional path appended.

Utilisation

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

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

Actualités

Chargement des actualités...