Title: Error When Redefining Pluggable Function
Last modified: August 19, 2016

---

# Error When Redefining Pluggable Function

 *  [Graham Hamilton](https://wordpress.org/support/users/qraham/)
 * (@qraham)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/error-when-redefining-pluggable-function/)
 * 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)`

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Graham Hamilton](https://wordpress.org/support/users/qraham/)
 * (@qraham)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/error-when-redefining-pluggable-function/#post-1723570)
 * So nobody has any idea why this is happening?
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/error-when-redefining-pluggable-function/#post-1723608)
 * See the note on the following page.
    [http://codex.wordpress.org/Pluggable_Functions](http://codex.wordpress.org/Pluggable_Functions)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error When Redefining Pluggable Function’ is closed to new replies.

## Tags

 * [pluggable](https://wordpress.org/support/topic-tag/pluggable/)
 * [wp_mail](https://wordpress.org/support/topic-tag/wp_mail/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/error-when-redefining-pluggable-function/#post-1723608)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
