get_author_link()
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() get author link code WP 6.7.1
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; }