I need the precise WordPress hooks that WPML uses to send email notifications, both to admins, transaltion managers and translators registered on the site. Any kind (all) email notifciations sent from WPML with wp_mail() must be disabled, hence the need for the precise hooks used.
Many thanks in advance!
Hello,
To disable email notifications sent by WPML to admins, translation managers, and translators, there are two approaches:
Disable Translation Manager Notifications (UI)
The most precise way to manage these is through the WPML interface. You can disable most notifications here:
Navigate to WPML > Settings.
Scroll down to the Translation Notifications section.
Here you can uncheck the options for sending notifications to the translation manager and translators.
Disable all Mails send by WMPL
If you want to ensure that absolutely no email originating from WPML is sent, the most reliable method is to intercept the pre_wp_mail filter and check the PHP call stack. If a WPML class is initiating the mail, the process is aborted.
You can add the following code to your functions.php or a functional plugin:
Please note that this is a temporary fix while our team works on a better, generic solution. The current version uses a debug backtrace to function, but we are working on a more elegant permanent fix that will be available soon.