admin_url

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

Paramètres

Entrée :
$path = '', $scheme = 'admin'
Sortie :
@param string      $url     The complete site URL including scheme and path.
@param string      $path    Path relative to the site URL. Blank string if no path is specified.
@param string|null $scheme  Scheme to give the site URL context. Accepts 'http', 'https', 'login',
@param int|null    $blog_id Site ID, or null for the current site.
@param string $path   Optional. Path relative to the admin URL. Default empty.
@param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl().
@return string Admin URL link with optional path appended.

Utilisation

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

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

Actualités

Chargement des actualités...