wpseek.com
A WordPress-centric search engine for devs and theme authors



get_author_link › WordPress Function

Since1.2.0
Deprecated2.1.0
get_author_link ( $display, $author_id, $author_nicename = '' )
Parameters: (3)
  • (bool) $display
    Required: Yes
  • (int) $author_id
    Required: Yes
  • (string) $author_nicename Optional.
    Required: No
    Default: (empty)
See:
Returns:
  • (string|null)
Defined at:
Codex:

Returns or Prints link to the author's posts.



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