get_author_link( bool $display, int $author_id, string $author_nicename =  ): string|null

This function has been deprecated. Use get_author_posts_url() instead.

Returns or Prints link to the author’s posts.

Description

See also

Parameters

$displayboolrequired
$author_idintrequired
$author_nicenamestringoptional

Default:''

Return

string|null

Source

function get_author_link($display, $author_id, $author_nicename = '') {
	_deprecated_function( __FUNCTION__, '2.1.0', 'get_author_posts_url()' );

	$link = get_author_posts_url($author_id, $author_nicename);

	if ( $display )
		echo $link;
	return $link;
}

Changelog

VersionDescription
2.1.0Use get_author_posts_url()
1.2.0Introduced.

User Contributed Notes

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