diff --git src/bp-core/classes/class-bp-phpmailer.php src/bp-core/classes/class-bp-phpmailer.php
index bfb2c74..4d6b88b 100644
|
|
class BP_PHPMailer implements BP_Email_Delivery { |
27 | 27 | public function bp_email( BP_Email $email ) { |
28 | 28 | static $phpmailer = null; |
29 | 29 | |
30 | | if ( $phpmailer === null ) { |
| 30 | /** |
| 31 | * Filter PHPMailer class to use. |
| 32 | * |
| 33 | * Specify an alternative version of PHPMailer before BP loads the default version. |
| 34 | * |
| 35 | * @since 2.8.0 |
| 36 | * |
| 37 | * @param string $phpmailer The phpmailer class. |
| 38 | */ |
| 39 | $phpmailer = apply_filters( 'bp_send_email_phpmailer_class', $phpmailer ); |
| 40 | |
| 41 | if ( ! ( $phpmailer instanceof PHPMailer ) ) { |
31 | 42 | if ( ! class_exists( 'PHPMailer' ) ) { |
32 | 43 | require_once ABSPATH . WPINC . '/class-phpmailer.php'; |
33 | 44 | require_once ABSPATH . WPINC . '/class-smtp.php'; |