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
檢視更多 >