Noptin_Mailer::before_sending()
Add filters/actions before the email is sent.
Source Source
File: includes/class-noptin-mailer.php
public function before_sending() { add_filter( 'wp_mail_from', array( $this, 'get_from_address' ), 1000 ); add_filter( 'wp_mail_from_name', array( $this, 'get_from_name' ), 1000 ); add_filter( 'wp_mail_content_type', array( $this, 'get_content_type' ), 1000 ); add_filter( 'wp_mail', array( $this, 'ensure_email_content' ), 1000000 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.2.8 | Introduced. |