get_author_link

Definition:
function get_author_link($echo = false, $author_id, $author_nicename = '') {}

Returns or Prints link to the author’s posts.

Parameters

  • bool $echo: Optional.
  • int $author_id: Required.
  • string $author_nicename: Optional.

Source code

function get_author_link($echo = false, $author_id, $author_nicename = '') {

	_deprecated_function( __FUNCTION__, '2.1', 'get_author_posts_url()' );



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



	if ( $echo )

		echo $link;

	return $link;

}

1168

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: