This commit is contained in:
Antoine M 2024-03-13 17:55:27 +01:00
parent 26df4edcce
commit cc73ee13dd

View File

@ -114,5 +114,20 @@ if (!current_user_can('manage_options')) return;
<?php endforeach; ?>
</div>
<?php
$ratings_table_name = "wp_app_ratings";
$ratings = $wpdb->get_results("
SELECT rating, COUNT(rating) as count
FROM $ratings_table_name
GROUP BY rating
");
echo '<pre>';
print_r($ratings);
echo '</pre>';
?>
<section class="ratings">
</section>
</div>