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.

Website & Email Hosting

Get the best website & 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