This filter makes it easier to add variables to edited email templates by passing an array of key-value pairs. Those values can then be used in email templates with the format: !!key!!.

This passes the data array and PMProEmail object.


apply_filters("pmpro_email_data", $this->data, $this);

Parameters

$email->data
array
$email
PMProEmail

Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/classes/class.pmproemail.php

View in Source Code