• Resolved programmin

    (@programmin)


    Unschedule or delete cron for daily email, does not seem to work for stopping email as suggested in other posts: Is there another wpcli command to unset the daily email everyone gets on updated wp-statistics?

    wp cron event delete wp_statistics_report_hook

    wp cron event unschedule wp_statistics_report_hook

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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:

    1. Go to Statistics > Settings > Email Reports > Report Frequency and set it to Disable.
    2. 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

    Thread Starter programmin

    (@programmin)

    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,

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.