A WordPress-centric search engine for devs and theme authors



get_author_link ›

Since1.2.0
Deprecated2.1.0
get_author_link ( $echo, $author_id, $author_nicename = '' )
Parameters: (3)
  • (bool) $echo
    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($echo, $author_id, $author_nicename = '') {
	_deprecated_function( __FUNCTION__, '2.1.0', 'get_author_posts_url()' );

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

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