the_author_link( bool $use_title_attr = true )

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

Description

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

Parameters

$use_title_attrbooloptional
Whether to add a title attribute.

Default:true

Source

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

Changelog

VersionDescription
7.0.0Added $use_title_attr parameter.
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.