Major plugins conflict – wp_mail has been declared by another plugin or theme
-
Upon installing the Post SMTP Mailer plugin I received the message “wp_mail has been declared by another plugin or theme”. The conflict occurs when used with the widely popular MalCare plugin together. I have contacted the MalCare support and they looked into the issue and came to this conclusion:
The function wp_mail is present in the wp-includes/pluggable.php file. This file loads once all the plugins are loaded in normal flow. But it has some functionalities our plugin requires while loading. Hence we have loaded this file.
So now the issue here is that the following file of the SMTP-Post plugin:
post-smtp/Postman/PostmanWpMailBinder.php has a function bind which simply checks if the wp_mail function exists and, based on it, concludes that wp_mail has been binded by another plugin or theme.It is very common to load this pluggable file, as it has many useful functionalities.
Is there any way to fix this plugin conflict or does the Post SMTP Mailer plugin really not use in conjunction with any plugin that loads the wp-includes/pluggable.php file?
- The topic ‘Major plugins conflict – wp_mail has been declared by another plugin or theme’ is closed to new replies.