author_link

FILTER wp-includes\author-template.php (ligne 398) github
Filters the URL to the author's page.

Paramètres

Entrée :
$link, $author_id, $author_nicename
Sortie :
@param string $link            The URL to the author's page.
@param int    $author_id       The author's ID.
@param string $author_nicename The author's nice name.

Utilisation

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

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

Actualités

Chargement des actualités...