This function has been deprecated. Use get_author_posts_url() instead.
get_author_link( bool $echo, int $author_id, string $author_nicename = '' )
Returns or Prints link to the author’s posts.
Description
See also
Parameters
- $echo
-
(Required)
- $author_id
-
(Required)
- $author_nicename
-
(Optional)
Default value: ''
Return
(string|null)
Source
File: wp-includes/deprecated.php
function get_author_link($echo, $author_id, $author_nicename = '') {
_deprecated_function( __FUNCTION__, 'WP-2.1.0', 'get_author_posts_url()' );
$link = get_author_posts_url($author_id, $author_nicename);
if ( $echo )
echo $link;
return $link;
}
Changelog
Version | Description |
---|---|
WP-2.1.0 | Use get_author_posts_url() |
WP-1.2.0 | Introduced. This function has been deprecated. Use get_author_posts_url() instead. |