user_dashboard_url

FILTER wp-includes\link-template.php (ligne 4019) github
Filters the dashboard URL for a user.

Paramètres

Entrée :
$url, $user_id, $path, $scheme
Sortie :
@param string $url     The complete URL including scheme and path.
@param int    $user_id The user ID.
@param string $path    Path relative to the URL. Blank string if no path is specified.
@param string $scheme  Scheme to give the URL context. Accepts 'http', 'https', 'login',

Utilisation

// Modifier la valeur avec le filtre 'user_dashboard_url'
add_filter('user_dashboard_url', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($url) {
    // Modifier la valeur
    return $url;
}

Actualités

Chargement des actualités...