get_author_link()WP 1.2.0

Deprecated from version 2.1.0. It is no longer supported and can be removed in future releases. Use get_author_posts_url() instead.

Returns or Prints link to the author's posts.

No Hooks.

Return

String|null.

Usage

get_author_link( $display, $author_id, $author_nicename );
$display(true|false) (required)
-
$author_id(int) (required)
-
$author_nicename(string)
Optional.
Default: ''

Notes

Changelog

Since 1.2.0 Introduced.
Deprecated since 2.1.0 Use get_author_posts_url()

get_author_link() code WP 6.4.3

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;
}