network_site_url

FUNCTION wp-includes\link-template.php (ligne 3709) github
Filters the URL to the plugins directory.

Paramètres

Entrée :
$path = '', $scheme = null
Sortie :
@param string $url    The complete URL to the plugins directory including scheme and path.
@param string $path   Path relative to the URL to the plugins directory. Blank string
@param string $plugin The plugin file path to be relative to. Blank string if no plugin
@param string      $path   Optional. Path relative to the site URL. Default empty.
@param string|null $scheme Optional. Scheme to give the site URL context. Accepts
@return string Site URL link with optional path appended.

Utilisation

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

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

Actualités

Chargement des actualités...