Plugin Support
Mehmet
(@gandomi)
Hello @programmin,
You are correct that the WP-CLI commands you mentioned will delete or unschedule the wp_statistics_report_hook.
However, since the email report option is still enabled in the plugin settings, the hook is regenerated each time the page loads.
Before running the WP-CLI commands, please:
- Go to Statistics > Settings > Email Reports > Report Frequency and set it to Disable.
- If you are using the Advanced Reporting add-on, go to Statistics > Settings > Advanced Reporting > Select Reporting Period and set it to Disable.
Disabling these two options will automatically remove the related cron hook, stopping the daily emails.
Best regards,
Mehemt
Right, is there any WPCLI command that will disable this email?
Plugin Support
Mehmet
(@gandomi)
Hi @programmin,
Apologies for the delay in getting back to you.
You can use the following WP-CLI command to disable the daily email:
wp eval "WP_Statistics\Option::update('time_report', '0');"
To verify that it’s disabled, you can run:
wp option pluck wp_statistics time_report
If it returns 0, the email report is successfully turned off.
Best regards,
Mehmet
Plugin Support
Mehmet
(@gandomi)
Hi there,
Since it has been a while without any updates, I’ll mark this ticket as resolved for now.
Please feel free to reply anytime if you need further help, and I’ll be here to assist.
Best regards,