akismet_delete_comment_batch

akismet_delete_comment_batch

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('akismet_delete_comment_batch') is found 1 times:

  • /wp-content/plugins/akismet/class.akismet.php line 560
    				unset( $comments[ $comment_id ] );
    			}
    
    			clean_comment_cache( $comment_ids );
    			do_action( 'akismet_delete_comment_batch', is_countable( $comment_ids ) ? count( $comment_ids ) : 0 );
    		}
    
    		if ( apply_filters( 'akismet_optimize_table', ( mt_rand(1, 5000) == 11), $wpdb->comments ) ) // lucky number
    			$wpdb->query("OPTIMIZE TABLE {$wpdb->comments}");
    	}