comment_reply_link

過濾鉤子
apply_filters( 'comment_reply_link', $args['before'] . $link . $args['after'], $args, $comment, $post )
引數
  • (string) $link The HTML markup for the comment reply link.
    Required:
  • (array) $args An array of arguments overriding the defaults.
    Required:
  • (WP_Comment) $comment The object of the comment being replied.
    Required:
  • (WP_Post) $post The WP_Post object.
    Required:
定義位置
相關勾子
comment_reply_link_argscancel_comment_reply_linkcomment_linkwp_comment_replyget_comment_link
相關方法
comment_reply_linkget_comment_reply_linkcancel_comment_reply_linkcomments_rss_linkcomment_linkpost_reply_link
引入
2.7.0
棄用
-

comment_reply_link。這個過濾器允許你修改出現在評論旁邊的回覆連結的HTML。

過濾評論回覆連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'comment_reply_link', $args['before'] . $link . $args['after'], $args, $comment, $post );
return apply_filters( 'comment_reply_link', $args['before'] . $link . $args['after'], $args, $comment, $post );
return apply_filters( 'comment_reply_link', $args['before'] . $link . $args['after'], $args, $comment, $post );

常見問題

FAQs
檢視更多 >