返回或打印链接到作者的帖子。
原型
get_author_link( bool $echo, int $author_id, string $author_nicename = '' )
参数
$echo
(bool)
(Required)
$author_id
(int)
(Required)
$author_nicename
(string)
(Optional)
返回值
(string|null)
源文件
路径:wp-includes/deprecated.php
<?php
...
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;
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/get_author_link/