Newsletters: Filter – wpml_send_body
Description
The wpml_send_body
filter is used to filter the body/content of an email just before it is sent by the Newsletter plugin to the subscriber. It applies disregarding of the mail type you are using to send the emails.
Usage
Arguments
$body
(The body/content of the email)$phpmailer
(The phpMailer object as is)$history_id
(The ID of the saved history email)
Example
Below is an example of using wpml_send_body
to receive the body/content of an email just before it is sent and manipulate it or use it for a different purpose.
Beautiful Newsletter Templates
Professional newsletter templates that are fully responsive for desktop, tablet, and mobile. They are 100% cross-client compatible.