Forums

Error When Redefining Pluggable Function (3 posts)

  1. Graham Hamilton
    Member
    Posted 1 year ago #

    I am trying to create a plugin to modify the wp_mail function in the pluggable.php file. I understand that to do this I simply need to define it somewhere else and WordPress will handle the rest.

    If that's the case, why do I get this error when I activate my plugin?

    Fatal error: Cannot redeclare wp_mail() (previously declared in .../wp-includes/pluggable.php:271)

  2. Graham Hamilton
    Member
    Posted 1 year ago #

    So nobody has any idea why this is happening?

  3. Mark / t31os
    Moderator
    Posted 1 year ago #

    See the note on the following page.
    http://codex.wordpress.org/Pluggable_Functions

Topic Closed

This topic has been closed to new replies.

About this Topic