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.

Shares

Web & Email Hosting

Get the best web & email hosting for speed, security and peace of mind. No restrictions, freedom to do what you need in order to run your business.

Host Now

Pin It on Pinterest

%d bloggers like this: