comment_author_link_rel

过滤钩子
apply_filters( 'comment_author_link_rel', $rel_parts, $comment )
参数
  • (string[]) $rel_parts An array of strings representing the rel tags which will be joined into the anchor's rel attribute.
    Required:
  • (WP_Comment) $comment The comment object.
    Required:
定义位置
相关勾子
get_comment_author_linkcomment_author_rsscomment_max_links_urlcomment_add_author_urlpre_comment_author_url
相关方法
comment_author_linkcomment_author_url_linkcomment_author_urlget_comment_author_linkcomment_author_ipcomment_author_email_link
引入
6.2.0
弃用
-

过滤评论作者链接的 rel 属性。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$rel_parts = apply_filters( 'comment_author_link_rel', $rel_parts, $comment );
$rel_parts = apply_filters( 'comment_author_link_rel', $rel_parts, $comment );
$rel_parts = apply_filters( 'comment_author_link_rel', $rel_parts, $comment );

常见问题

FAQs
查看更多 >