akismet_delete_comment_batch

akismet_delete_comment_batch

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-5.4.2

do_action('akismet_delete_comment_batch') is found 1 times:

  • /wp-content/plugins/akismet/class.akismet.php line 387
    			$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 ) );
    
    			clean_comment_cache( $comment_ids );
    			do_action( 'akismet_delete_comment_batch', count( $comment_ids ) );
    		}
    
    		if ( apply_filters( 'akismet_optimize_table', ( mt_rand(1, 5000) == 11), $wpdb->comments ) ) // lucky number
    			$wpdb->query("OPTIMIZE TABLE {$wpdb->comments}");
    	}