diff --git a/includes/blocklist-stats.php b/includes/blocklist-stats.php new file mode 100644 index 0000000..1d90554 --- /dev/null +++ b/includes/blocklist-stats.php @@ -0,0 +1,42 @@ + $active, + 'pending' => $pending + ]; +} + +// Output JSON +header('Content-Type: application/json'); +echo json_encode($stats);