Newsletters: Filter – newsletters_emailbody_links

Description

The newsletters_emailbody_links filter is used to filter the links in the body of the email before it is sent out.

This filter is applied before the Bit.ly links are applied and also before the Newsletter plugin’s internal link/click tracking is applied.

You can use this filter to add query arguments to links for example.

Usage

Arguments

  • $body – The full body of the email
  • $history_id – The history ID of the email in the database
  • $matches – Regular expression matches of A HREF links in the email body

Example

Earn Money by Referring People

Refer customers to us with your affiliate link and earn commission on sales from your link.

Get Started

Pin It on Pinterest