set_url_scheme

FUNCTION wp-includes\link-template.php (ligne 3907) github
Filters the admin URL for the current site or network depending on context.

Paramètres

Entrée :
$url, $scheme = null
Sortie :
@param string $url    The complete URL including scheme and path.
@param string $path   Path relative to the URL. Blank string if no path is specified.
@param string $scheme The scheme to use.
@param string      $url    Absolute URL that includes a scheme
@param string|null $scheme Optional. Scheme to give $url. Currently 'http', 'https', 'login',
@return string URL with chosen scheme.

Utilisation

// Utilisation de la fonction set_url_scheme
$result = set_url_scheme($url, $scheme = null);

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

Actualités

Chargement des actualités...