Applicable to:
- Plesk for Linux
- Plesk for Windows
Question
How to enable/disable WordPress update email notifications in Plesk?
Answer
-
Go to Tools & settings > Notifications and disable/enable required notifications with the checkboxes:
-
Click OK
-
Login to the Plesk server via SSH
-
Execute
plesk bin notification
utility with desired settings:# plesk bin notification -u -code <code> -send2admin true -send2reseller true -send2client true -send2email true -subj 'Subject' -email 'test@example.com'
The available values for notifications to be replaced for
<code>
are the following:Code Description ext-wp-toolkit-notification-admin_updates WordPress application updates (administrator's digest) ext-wp-toolkit-notification-reseller_updates WordPress application updates (reseller's digest) ext-wp-toolkit-notification-client_updates WordPress application updates (customer's digest) ext-wp-toolkit-notification-admin_suspicious_instance WordPress installation is quarantined (administrator's digest) ext-wp-toolkit-notification-reseller_suspicious_instance WordPress installation is quarantined (reseller's digest) ext-wp-toolkit-notification-client_suspicious_instance WordPress installation is quarantined (customer's digest) ext-wp-toolkit-notification-admin_blocklisted_plugins_deactivated Blocked WordPress plugins deactivated (administrator's digest) ext-wp-toolkit-notification-reseller_blocklisted_plugins_deactivated Blocked WordPress plugins deactivated (reseller's digest) ext-wp-toolkit-notification-client_blocklisted_plugins_deactivated Blocked WordPress plugins deactivated (customer's digest) ext-wp-toolkit-notification-admin_vulnerability_found WordPress site vulnerabilities found (administrator's digest) ext-wp-toolkit-notification-reseller_vulnerability_found WordPress site vulnerabilities found (reseller's digest) ext-wp-toolkit-notification-client_vulnerability_found WordPress site vulnerabilities found (customer's digest)
As an example, run the following command to enable sending notifications to administrator, reseller, client and a mailbox test@example.com
about WordPress application updates (administrator's digest)
:
# plesk bin notification -u -code ext-wp-toolkit-notification-admin_updates -send2admin true -send2reseller true -send2client true -send2email true -subj 'Subject' -email 'test@example.com'
Comments
7 comments
The SQL-query gives an error that multiple rows were returned:
MariaDB [psa]> update ModuleSettings set value='{"notifyAdmin":false,"notifyResellers":false,"notifyClients":false,"notifyCustomEmail":false,"customEmail":"","message":"<available_updates_text><available_updates_list><installed_updates_text><installed_updates_list><requirements_updates_text><requirements_updates_list>"}' where module_id=(select module_id from wp);
ERROR 1242 (21000): Subquery returns more than 1 row
MariaDB [psa]> select module_id from wp;
+-----------+
| module_id |
+-----------+
| 3 |
| 4 |
+-----------+
2 rows in set (0.00 sec)
MariaDB [psa]> select name from ModuleSettings where name like '%wp%';
+----------------------------------------------+
| name |
+----------------------------------------------+
| ext-wp-toolkit-notification-admin_updates |
| ext-wp-toolkit-notification-client_updates |
| ext-wp-toolkit-notification-reseller_updates |
| wptInstallationId |
| showPricesVAT |
| vatShowPopover |
+----------------------------------------------+
6 rows in set (0.00 sec)
The issue here is that '%wp%' also matches 'showPricesVAT' and 'vatShowPopover'.
Hi R Broersma,
Could you please enlist what components do your Plesk installation has? Does it has some billing component or any specific extension providing such tables?
After following these instructions and turning all Wordpress notifications off, Plesk still sends an email notification every time a Wordpress site is created. Is there a way to shut this email notification off?
Hello Deanna Wallace
Please, check if this or custom notification in event handlers is enabled:
Hello,
is there a way to disable this mails for some customers separately?
I have customers who doesn't want those mails and other who love them.
Haven't found any settings at user settings.
Is there any way to disable notification from a single domain?
Hello Qhiliqq and Tecnico Shellrent,
At the moment these notifications can be configured server-wide only. Please vote for such functionality to be implemented in the corresponding user-voice request here.
Please sign in to leave a comment.