edit_comment action-hook . WP 1.2.0
Fires immediately after a comment is updated in the database.
The hook also fires immediately before comment status transition hooks are fired.
Usage
add_action( 'edit_comment', 'action_function_name_3008', 10, 2 ); function action_function_name_3008( $comment_ID, $data ){ // action... }
- $comment_ID(int)
- The comment ID.
- $data(array)
- Comment data.
Changelog
Since 1.2.0 | Introduced. |
Since 4.6.0 | Added the $data parameter. |
Where the hook is called
wp-includes/comment.php 2555
do_action( 'edit_comment', $comment_ID, $data );