edit_comment_link

過濾鉤子
apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text )
引數
  • (string) $link Anchor tag for the edit link.
    Required:
  • (string) $comment_id Comment ID as a numeric string.
    Required:
  • (string) $text Anchor text.
    Required:
定義位置
相關勾子
get_comment_linkget_edit_comment_linkget_comments_linkcomment_linkedit_comment
相關方法
edit_comment_linkget_comment_linkget_edit_comment_linkget_comments_linknext_comments_linkedit_comment
引入
2.3.0
棄用
-

edit_comment_link: 這是一個過濾鉤子,允許開發者修改編輯評論的連結。

過濾評論編輯連結的錨標籤。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text ) . $after;
echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text ) . $after;
echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text ) . $after;

常見問題

FAQs
檢視更多 >