Title: Need help understanding this php code instruction
Last modified: August 19, 2016

---

# Need help understanding this php code instruction

 *  [Will Taft](https://wordpress.org/support/users/wt/)
 * (@wt)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/need-help-understanding-this-php-code-instruction/)
 * The below instruction was offered as part of a solution to having admin emails
   go to two addresses. I can’t seem to understand the last part about the last 
   return line. I put the relevant part of the code from my file in the pastebin
   here: [http://wordpress.pastebin.ca/1059343](http://wordpress.pastebin.ca/1059343)
 * But if someone could check to see if I did the beginning of the file correctly,
   and explain what I need to do at the end of the section to correctly follow the
   instruction, I would be grateful. Thanks.
 * > then, in wp-includes/pluggable.php, function wp_mail, I made the following 
   > change:
   > function wp_mail( $targets, $subject, $message, $headers = ” )
   >  { $tars = explode(“,”,
   > $targets); foreach($tars as $to) { // original function code here except for
   > last return line } return $result }
 * This was the old post that contained the instruction:
    [http://wordpress.org/support/topic/147948?replies=9](http://wordpress.org/support/topic/147948?replies=9)

The topic ‘Need help understanding this php code instruction’ is closed to new replies.

## Tags

 * [admin email](https://wordpress.org/support/topic-tag/admin-email/)
 * [code fix](https://wordpress.org/support/topic-tag/code-fix/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Will Taft](https://wordpress.org/support/users/wt/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/need-help-understanding-this-php-code-instruction/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
