• Resolved curioustoad

    (@curioustoad)


    Firstly, thanks for creating such a reliable plugin – the Lite version has always worked for me across different sites and setups.

    I have a WooCommerce-based subscription website which generates a lot of scheduled actions (sub renewals etc) in the Action Scheduler.

    The load on the server can get quite high, so I’m looking at optimising as much as possible by removing unnecessary tasks.

    I notice in the scheduled actions a lot of instances of the following hook:

    wp_mail_smtp_admin_notifications_update

    At times it runs about three or four times in a five minute window, other times it’s every few hours.

    Im guessing from the name it’s querying something to generate a quick report or send a notification to admin users? As I get full logging from the SMTP provider (Send In Blue), I don’t have any need for the dashboard widget, so I turn this off in settings.

    Is the hook mentioned above to do with the dashboard widget, or something else?

    If it is, it shouldn’t be firing if the widget is not enabled.

    If it’s something else, can you please explain:

    A) what it actually is doing
    B) if it’s safe to disable
    C) how to disable it

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @curioustoad,

    Thanks for reaching out. There is an option in WP Mail SMTP > Settings > Misc > Hide Announcements. Here’s a screenshot for quick reference.

    However, please note that “wp_mail_smtp_admin_notifications_update” should run only once in a day. It sounds like your site is facing issues with scheduled actions and you might need to check into that.

    I hope this helps!

    Thread Starter curioustoad

    (@curioustoad)

    Thanks Sanjeev. I’ve already disabled all those options from the admin screen. What is the hook used for? If I don’t use the notifications there’s no sense leaving a process being scheduled?

    Hi @curioustoad,

    If you have checked the “Hide Announcements” options, there should not be new “wp_mail_smtp_admin_notifications_update” tasks. If there are any pending tasks, you can cancel the tasks from WP Mail SMTP > Tools > Scheduled Actions. However, if the tasks aren’t running or there are multiple ‘wp_mail_smtp_admin_notifications_update’ tasks pending, there’s an issue with Action Scheduler on your site.

    You may not need these notifications, but these tasks should not cause the issue you’re describing.

    I hope this clarifies!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disabling admin notifications?’ is closed to new replies.