Skip to:
Content

BuddyPress.org

Changeset 10636


Ignore:
Timestamp:
03/05/2016 09:03:23 PM (9 years ago)
Author:
djpaul
Message:

Emails: add WordPress' phpmailer_init action to support WordPress plugins that adjust PHPMailer's configuration.

Certain existing popular plugins configure WordPress to use SMTP for PHPMailer, and don't re-implement wp_mail() nor filter to enable HTML. Since we use PHPMailer, we ought to support these plugins since they're just tweaking how PHPMailer works rather than re-inventing the wheel.

We achieve this by adding the phpmailer_init action in addition to our own bp_phpmailer_init action.

Fixes #6945 (2.5 branch)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/src/bp-core/classes/class-bp-phpmailer.php

    r10490 r10636  
    125125        do_action( 'bp_phpmailer_init', $phpmailer );
    126126
     127        /** This filter is documented in wp-includes/pluggable.php */
     128        do_action_ref_array( 'phpmailer_init', array( &$phpmailer ) );
     129
    127130        try {
    128131            return $phpmailer->Send();
Note: See TracChangeset for help on using the changeset viewer.