Need help understanding this php code instruction (1 post)

  1. Will Taft
    Posted 7 years ago #

    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

    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:

Topic Closed

This topic has been closed to new replies.

About this Topic