woocommerce_gzd_email_template_id_comparison

The WooCommerce Germanized woocommerce gzd email template id comparison hook.

Description

apply_filters( 'woocommerce_gzd_email_template_id_comparison', (unknown) $mail_id_tpl, (unknown) $mail_id, (unknown) $tpl ); 

Parameters (3)

0. $mail_id_tpl — Optional. (unknown) => ( $mail->id === $tpl )
The mail id tpl.
1. $mail_id (unknown)
The mail id.
2. $tpl (unknown)
The tpl.

Usage

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

Defined (1)

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

/includes/class-wc-gzd-emails.php  
  1. if ( apply_filters( 'woocommerce_gzd_email_template_id_comparison', ( $mail->id === $tpl ), $mail->id, $tpl ) ) {