deleted_comment, $comment_id, $comments[ $comment_id ]

deleted_comment, $comment_id, $comments[ $comment_id ]

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: 7.0.3

do_action('deleted_comment, $comment_id, $comments[ $comment_id ]') is found 1 times:

  • /wp-content/plugins/akismet/class.akismet.php line 893
    			$wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->comments} WHERE comment_id IN ( " . $format_string . ' )', $comment_ids ) );
    			$wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->commentmeta} WHERE comment_id IN ( " . $format_string . ' )', $comment_ids ) );
    
    			foreach ( $comment_ids as $comment_id ) {
    				do_action( 'deleted_comment', $comment_id, $comments[ $comment_id ] );
    				unset( $comments[ $comment_id ] );
    			}
    
    			clean_comment_cache( $comment_ids );
    			do_action( 'akismet_delete_comment_batch', is_countable( $comment_ids ) ? count( $comment_ids ) : 0 );
    		}