Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

frietbakker on "Removing function from pluggable.php"

$
0
0

The wp_mail function in my plugin does not override the core wp_mail.

The function declaration in the plugin is like this:

if (!function_exists("wp_mail")){
      function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()) {

When i remove the wp_from from pluggable.php, the wp_mail from the plugin is called. Otherwise the function from pluaggable.php is called.

What is going on?


Viewing all articles
Browse latest Browse all 8245

Trending Articles