woocommerce_gzd_product_is_revocation_exception

The WooCommerce Germanized woocommerce gzd product is revocation exception hook.

Description

apply_filters( 'woocommerce_gzd_product_is_revocation_exception', (bool) $false, (unknown) $product, (unknown) $type ); 

Parameters (3)

0. $false (bool) => false
The false.
1. $product (unknown)
The product.
2. $type (unknown)
The type.

Usage

To run the hook, copy the example below.
  1. $false = apply_filters( 'woocommerce_gzd_product_is_revocation_exception', $false, $product, $type ); 
  2.  
  3. if ( !empty( $false ) ) { 
  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_product_is_revocation_exception callback 
  2. function filter_woocommerce_gzd_product_is_revocation_exception( $false, $product, $type ) { 
  3. // make filter magic happen here... 
  4. return $false
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_gzd_product_is_revocation_exception', 'filter_woocommerce_gzd_product_is_revocation_exception', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_gzd_product_is_revocation_exception', 'filter_woocommerce_gzd_product_is_revocation_exception', 10, 3 ); 

Defined (3)

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

/includes/wc-gzd-product-functions.php  
  1. if ( apply_filters( 'woocommerce_gzd_product_is_revocation_exception', false, $product, $type ) ) 
/includes/class-wc-gzd-emails.php  
  1. if ( wc_gzd_is_revocation_exempt( $_product ) || apply_filters( 'woocommerce_gzd_product_is_revocation_exception', false, $_product, 'digital' ) ) 
  1. if ( wc_gzd_is_revocation_exempt( $_product, 'service' ) || apply_filters( 'woocommerce_gzd_product_is_revocation_exception', false, $_product, 'service' ) )