edit_comment

edit_comment

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('edit_comment') is found 1 times:

  • /wp-includes/comment.php line 2654
    2650
    2651
    2652
    2653
    2654
    2655
    2656
    2657
    2658
    2659
    2660
    *
     * @param int   $comment_id The comment ID.
     * @param array $data       Comment data.
     */
    do_action( 'edit_comment', $comment_id, $data );
     
    $comment = get_comment( $comment_id );
     
    wp_transition_comment_status( $comment->comment_approved, $old_status, $comment );
     
    return $result;

See this hook used in plugins: