Skip to:
Content

BuddyPress.org

Changeset 10635


Ignore:
Timestamp:
03/05/2016 08:57:35 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

File:
1 edited

Legend:

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

    r10490 r10635  
    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.