pmpro_email_template

The Paid Memberships Pro pmpro email template hook.

Description

apply_filters( 'pmpro_email_template', (unknown) $temail_template, (unknown) $instance ); 

Parameters (2)

0. $temail_template (unknown)
The temail template.
1. $instance (unknown)
The instance.

Usage

To run the hook, copy the example below.
  1. $temail_template = apply_filters( 'pmpro_email_template', $temail_template, $instance ); 
  2.  
  3. if ( !empty( $temail_template ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the pmpro_email_template callback 
  2. function filter_pmpro_email_template( $temail_template, $instance ) { 
  3. // make filter magic happen here... 
  4. return $temail_template
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'pmpro_email_template', 'filter_pmpro_email_template', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'pmpro_email_template', 'filter_pmpro_email_template', 10, 2 ); 

Defined (17)

The filter is defined in the following location(s).

/classes/class.pmproemail.php  
  1. $this->template = apply_filters("pmpro_email_template", $temail->template, $this); 
  1. $this->template = apply_filters("pmpro_email_template", "cancel", $this); 
  1. $this->template = apply_filters("pmpro_email_template", "cancel_admin", $this); 
  1. $this->template = apply_filters("pmpro_email_template", $this->template, $this); 
  1. $this->template = apply_filters("pmpro_email_template", $this->template, $this); 
  1. $this->template = apply_filters( "pmpro_email_template", "billing", $this ); 
  1. $this->template = apply_filters( "pmpro_email_template", "billing_admin", $this ); 
  1. $this->template = apply_filters("pmpro_email_template", "billing_failure", $this); 
  1. $this->template = apply_filters("pmpro_email_template", "billing_failure_admin", $this); 
  1. $this->template = apply_filters("pmpro_email_template", "credit_card_expiring", $this); 
  1. $this->template = apply_filters("pmpro_email_template", "invoice", $this); 
  1. $this->template = apply_filters("pmpro_email_template", "trial_ending", $this); 
  1. $this->template = apply_filters("pmpro_email_template", "membership_expired", $this); 
  1. $this->template = apply_filters("pmpro_email_template", "membership_expiring", $this); 
  1. $this->template = apply_filters("pmpro_email_template", "admin_change", $this); 
  1. $this->template = apply_filters("pmpro_email_template", "admin_change_admin", $this); 
  1. $this->template = apply_filters("pmpro_email_template", "billable_invoice", $this);