deleted_comment, $comment->comment_ID, $comment

deleted_comment, $comment->comment_ID, $comment

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: 7.0.3

do_action('deleted_comment, $comment->comment_ID, $comment') is found 1 times:

  • /wp-includes/comment.php line 1557
    	 *
    	 * @param string     $comment_id The comment ID as a numeric string.
    	 * @param WP_Comment $comment    The deleted comment.
    	 */
    	do_action( 'deleted_comment', $comment->comment_ID, $comment );
    
    	$post_id = $comment->comment_post_ID;
    	if ( $post_id && '1' === $comment->comment_approved ) {
    		wp_update_comment_count( $post_id );
    	}