This page redirects to an external site: https://developer.wordpress.org/reference/functions/the_author_email/
Page d'accueil du Codex en français - Télécharger WordPress en français
Les utilisateurs francophones se retrouvent sur le site WordPress-Francophone, notamment sur son forum d'entraide.
Ce marqueur affiche l'adresse e-mail de l'auteur de l'article. Le champ E-mail est défini dans le profil utilisateur (Administration > Utilisateurs > Votre Profil (en anglais)). Ce marqueur doit être utilisé à l'intérieur de la Boucle.
<?php the_author_email(); ?>
Affiche l'adresse e-mail de l'auteur en tant que lien "mailto".
<a href="mailto:<?php the_author_email(); ?>">Contact the author</a>
Cet exemple 'masque' partiellement l'adresse en utilisant la fonction interne antispambot() pour encoder certaines parties en caractères HTML (en anglais) (elles sont correctement lues par votre navigateur). Veuillez noter que l'exemple utilise la fonction get_the_author_email()', car the_author_email() affiche l'adresse avant quantispambot() ne puisse agir dessus.
<a href="mailto:<?php echo antispambot(get_the_author_email()); ?>">Contacter l'auteur</a>
Ce marqueur n'accepte aucun argument.
the_author, the_author_description, the_author_login, the_author_firstname, the_author_lastname, the_author_nickname, the_author_ID, the_author_email, the_author_url, the_author_icq, the_author_aim, the_author_yim, the_author_msn, the_author_posts, the_author_posts_link, list_authors, wp_list_authors