pmpro_email_subject
The Paid Memberships Pro pmpro email subject hook.
Description
Parameters (2)
- 0. $temail_subject (unknown)
- The temail subject.
- 1. $instance (unknown)
- The
instance
.
Usage
- To run the hook, copy the example below.
- $temail_subject = apply_filters( 'pmpro_email_subject', $temail_subject, $instance );
- if ( !empty( $temail_subject ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the pmpro_email_subject callback
- function filter_pmpro_email_subject( $temail_subject, $instance ) {
- // make filter magic happen here...
- return $temail_subject;
- };
- // add the filter
- add_filter( 'pmpro_email_subject', 'filter_pmpro_email_subject', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'pmpro_email_subject', 'filter_pmpro_email_subject', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /classes/class.pmproemail.php
- $this->subject = apply_filters("pmpro_email_subject", $temail->subject, $this);