the_author_link

过滤钩子
apply_filters( 'the_author_link', $link, $author_url, $authordata )
参数
  • (string) $link The default rendered author HTML link.
    Required:
  • (string) $author_url Author's URL.
    Required:
  • (WP_User) $authordata Author user data.
    Required:
定义位置
相关勾子
author_linkthe_author_posts_linkthe_authorthe_shortlinktheme_action_links
相关方法
the_author_linkthe_author_loginget_the_author_linkget_author_linkthe_author_idthe_author_msn
引入
6.0.0
弃用
-

the_author_link是一个模板标签,显示作者的档案页的链接。归档页显示该作者写的所有文章,这个标签用来提供一个指向该归档页的链接。

过滤作者的URL链接HTML。

return apply_filters( 'the_author_link', $link, $author_url, $authordata );

常见问题

FAQs
查看更多 >