wc_aelia_euva_order_is_eu_vat_number_required

The WooCommerce EU VAT Assistant wc aelia euva order is eu vat number required hook.

Description

apply_filters( 'wc_aelia_euva_order_is_eu_vat_number_required', (unknown) $result, (number) $customer_country ); 

Parameters (2)

0. $result (unknown)
The result.
1. $customer_country (number)
The customer country.

Usage

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

Defined (1)

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

/src/plugin-main.php  
  1. return apply_filters('wc_aelia_euva_order_is_eu_vat_number_required', $result, $customer_country);