edit_comment

動作鉤子
do_action( 'edit_comment', $comment_id, $data )
引數
  • (int) $comment_id The comment ID.
    Required:
  • (array) $data Comment data.
    Required:
定義位置
相關勾子
get_commentedit_comment_linkget_comment_iddelete_commentdeleted_comment
相關方法
edit_commentget_commentedit_comment_linkget_commentsthe_commentget_comment_id
引入
4.6.0
棄用
-

edit_comment: 這是一個動作鉤子,在一個評論被編輯後被觸發。

在資料庫中更新註釋後立即觸發。

鉤子也會在註釋狀態轉換鉤子被觸發之前立即觸發。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'edit_comment', $comment_id, $data );
do_action( 'edit_comment', $comment_id, $data );
do_action( 'edit_comment', $comment_id, $data );

常見問題

FAQs
檢視更多 >