Action
rpress_email_send_after
On this page
Fires after wp_mail() has been called by RPRESS_Emails::send().
Runs in RPRESS_Emails::send() immediately after wp_mail() returns. RestroPress uses it to remove the sender filters it added and to clear the heading. Use it to undo temporary changes made in rpress_email_send_before.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$emails | RPRESS_Emails | The RPRESS_Emails instance sending the email. |
Example#
function my_email_send_after( $emails ) {
remove_filter( 'wp_mail_charset', 'my_email_charset' );
}
add_action( 'rpress_email_send_after', 'my_email_send_after' );
Notes#
Runs whether or not wp_mail() succeeded.
Source#
Fired from:
includes/emails/class-rpress-emails.php(line 308), inRPRESS_Emails::send()
See also#
Was this page helpful?
