the_author_posts_link
云策文档标注
概述
the_author_posts_link 是一个 WordPress 过滤器钩子,用于修改当前文章作者页面的链接。它允许开发者自定义链接的 HTML 输出。
关键要点
- 这是一个过滤器钩子,用于过滤当前文章作者页面的链接。
- 参数 $link 是一个字符串,表示 HTML 链接。
- 源代码中通过 apply_filters('the_author_posts_link', $link) 调用。
- 相关函数 get_the_author_posts_link() 用于检索该链接。
- 自 WordPress 2.9.0 版本引入。
原文内容
Filters the link to the author page of the author of the current post.
Parameters
$linkstring-
HTML link.
Source
return apply_filters( 'the_author_posts_link', $link );
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |