• 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: https://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:
    https://www.ads-software.com/support/topic/147948?replies=9

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