get_the_author_link()
get_the_author_link()
检索作者的链接或作者的姓名。
Retrieve either author’s link or author’s name.
说明(Description)
如果作者有一个主页集,返回一个HTML链接,否则只返回作者的名字。
返回(Return)
(string|null)HTML链接如果作者的url存在于用户meta中,则为get_the_author(string|null)的结果。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.0.0 | wp-includes/author-template.php:229 | 1 function | 5 |
笔记(Notes)
此示例将作者的网站URL显示为链接,链接的文本是作者的配置文件显示名称。在本例中,作者的显示名称是James Smith。
get_the_author_link() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_the_author_link/