pluginkollektiv / statify

Statify – statistics plugin for WordPress
https://wordpress.org/plugins/statify/
GNU General Public License v3.0
76 stars 22 forks source link

Functionality to reset statistics #262

Open stklcode opened 1 year ago

stklcode commented 1 year ago

Background

The question came up quite a few times in various support requests: How can I delete/reset the statistics?

The answer is always the same, direct DB manipulation, setting the storage period to 1 day and back or reinstallation. None of these solutions is complex, but none is really convenient either.

References (selection):

Proposal

We should introduce a reset button on the settings page.

The button should be little separated from the save-button, probably red colored with something like "danger zone" above. A user who can edit the settings is able to reset the data using the ways above anyway, so I don't think we need any additional permissions here.

The function should remove all statistics data from the database and probably reset the tables (e.g. auto increments), so we can start off from scratch afterwards.