Hi,
Currently there isn’t a way to clear the reports but this task is on the backlog for a future release.
Thanks.
Thread Starter
tezka
(@tezka)
Digital Arm, thanks! I understand that there is no such configuration or button that would delete the report. But maybe you can tell me how I can reset all reports? For example, if the reports are stored in a file on the hosting, I could delete the rows or replace the entire file. Is it possible?
Certainly! The data is stored in the database as post meta with a key: _bbp_modtools_post_report
Does that give you enough to go on?
Thread Starter
tezka
(@tezka)
I’m not sure yet. I found 3 repetitions of this key in the file moderation.php. But I do not understand what needs to be done to make a reset. More precisely, I want to delete those 2 reports that got into the database.
Thread Starter
tezka
(@tezka)
Are there any more clues?
You would need to run a query in the database on your wp_postmeta table.
DELETE FROM wp_postmeta WHERE meta_key = ‘_bbp_modtools_post_report’;
If you wanted to delete reports only for a certain post:
DELETE FROM wp_postmeta WHERE post_id = ’20’ AND meta_key = ‘_bbp_modtools_post_report’; // Edit 20 to your post ID.
If you don’t have access to the database or aren’t comfortable running this then probably best to wait until the next release which will have a “Clear Reports” action.
Let me know how you get on.
-
This reply was modified 8 years, 3 months ago by
Digital Arm.