network_admin_url

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

Paramètres

Entrée :
$path = '', $scheme = 'admin'
Sortie :
@param string      $url         The complete network home URL including scheme and path.
@param string      $path        Path relative to the network home URL. Blank string
@param string|null $orig_scheme Scheme to give the URL context. Accepts 'http', 'https',
@param string $path   Optional path relative to the admin URL. Default empty.
@param string $scheme Optional. The scheme to use. Default is 'admin', which obeys force_ssl_admin()
@return string Admin URL link with optional path appended.

Utilisation

// Utilisation de la fonction network_admin_url
$result = network_admin_url($path = '', $scheme = 'admin');

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

Actualités

Chargement des actualités...