mpoet_email_url

The MailPoet Newsletters mpoet email url hook.

Description

apply_filters( 'mpoet_email_url', (unknown) $email_url, (unknown) $email_params ); 

Parameters (2)

0. $email_url (unknown)
The email url.
1. $email_params (unknown)
The email params.

Usage

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

Defined (1)

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

/helpers/mailer.php  
  1. if(!empty($email->params)) $email_url = apply_filters('mpoet_email_url', $email_url, $email->params);