edit_comment WordPress Action Hook
The edit_comment hook is triggered whenever a comment is edited. It allows you to perform custom actions when a comment is edited, such as notifying the comment author or updating a custom database table.
do_action( 'edit_comment', int $comment_ID , array $data ) #
Fires immediately after a comment is updated in the database.
Description
The hook also fires immediately before comment status transition hooks are fired.
Parameters
- $comment_ID
(int)The comment ID.
- $data
(array)Comment data.
Source
File: wp-includes/comment.php
Changelog
Version | Description |
---|---|
4.6.0 | Added the $data parameter. |
1.2.0 | Introduced. |