wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



the_author_link › WordPress Function

Depuis2.1.0
Dépréciéen/a
› the_author_link ( $use_title_attr = true )
Paramètres:
  • (bool) $use_title_attr Optional. Whether to add a title attribute. Default true.
    Requis: Non
    Défaut: true
Liens:
Défini(e) dans:
Codex:
Changelog:
  • 7.0.0

Displays either author's link or author's name.

If the author has a home page set, echo an HTML link, otherwise just echo the author's name.


Source

function the_author_link( $use_title_attr = true ) {
	echo get_the_author_link( $use_title_attr );
}