wc_aelia_eu_vat_assistant_customer_vat_exemption

The WooCommerce EU VAT Assistant wc aelia eu vat assistant customer exemption hook.

Description

apply_filters( 'wc_aelia_eu_vat_assistant_customer_vat_exemption', (unknown) $customer_vat_exemption, (number) $this_vat_country, (number) $this_vat_number, (number) $this_vat_number_validated, (unknown) $this_raw_vat_validation_response ); 

Parameters (5)

0. $customer_vat_exemption (unknown)
The customer vat exemption.
1. $this_vat_country (number)
The this vat country.
2. $this_vat_number (number)
The this vat number.
3. $this_vat_number_validated (number)
The this vat number validated.
4. $this_raw_vat_validation_response (unknown)
The this raw vat validation response.

Usage

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

Defined (1)

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

/src/plugin-main.php  
  1. $customer_vat_exemption = apply_filters('wc_aelia_eu_vat_assistant_customer_vat_exemption', $customer_vat_exemption, $this->vat_country, $this->vat_number, $this->vat_number_validated, $this->raw_vat_validation_response);