钩子文档

get_comment_author_url_link

💡 云策文档标注

概述

get_comment_author_url_link 是一个 WordPress 过滤器,用于修改评论作者 URL 链接的 HTML 输出。它允许开发者自定义链接的格式或内容。

关键要点

  • 这是一个过滤器 Hook,名称为 get_comment_author_url_link。
  • 参数 $comment_author_url_link 是 HTML 格式的评论作者 URL 链接字符串。
  • 通过 apply_filters 调用,开发者可以添加回调函数来修改链接。
  • 相关函数 get_comment_author_url_link() 用于检索当前评论作者的 URL 链接 HTML。
  • 自 WordPress 1.5.0 版本引入。

📄 原文内容

Filters the comment author’s returned URL link.

Parameters

$comment_author_url_linkstring
The HTML-formatted comment author URL link.

Source

return apply_filters( 'get_comment_author_url_link', $comment_author_url_link );

Changelog

Version Description
1.5.0 Introduced.