On this page
get_author_link( bool $display, int $author_id, string $author_nicename = '' ): string|null
This function has been deprecated. Use get_author_posts_url() instead.
Returns or Prints link to the author’s posts.
Description
See also
Parameters
$displaybool Required$author_idint Required$author_nicenamestring Optional-
Default:
''
Return
string|null
Source
File: wp-includes/deprecated.php. View all references
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;
}
Related
Uses
| Uses | Description |
|---|---|
| get_author_posts_url() wp-includes/author-template.php | Retrieves the URL to the author page for the user with the ID provided. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 2.1.0 | Use get_author_posts_url() |
| 1.2.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_author_link