mycred_email_before_send

Codex / mycred/email / Filters / mycred_email_before_send

Description

This filter allows you to adjust the details of an email notification before it is sent.

Available since version 1.5

Parameters

Param Type Required Description
$email array Yes

An associative array of email details:

  • to – The email recipient
  • subject – The email subject
  • message – The email body
  • headers – The email headers
  • attachments – Email attachments
  • request – The myCRED Request that triggered this email
  • email_id – The email notice id

Used By

Package Prio. Description
mycred/payment 10 The WooCommerce gateway uses this filter to render the order details before the email is sent.
mycred/payment 20 The MarketPress gateway uses this filter to render the order details before the email is sent.
mycred/payment 30 The WP E-Commerce gateway uses this filter to render the order details beforethe email is sent.
mycred/content 40 The Sell Content add-on uses this filter to render the purchase details before the email is set.
mycred/transfer 50 The Transfer add-on uses this filter to render the transfer before the email is sent.

Example

Example 1: Append a footer to all emails sent by the Email Notifications add-on.

Last edited June 24, 2016