Newsletters: Filter – wpml_send_body

[wpdocsparentlink]

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.

Shares

WordPress Plugins

Start selling products, sending newsletters, publishing ads and more through your own WordPress website using our premium WordPress plugins.

Browse

Pin It on Pinterest

%d bloggers like this: