wc_aelia_euva_eu_vat_number_raw_validation_result

The WooCommerce EU VAT Assistant wc aelia euva eu vat number raw validation result hook.

Description

apply_filters( 'wc_aelia_euva_eu_vat_number_raw_validation_result', (unknown) $validation_result, (number) $country, (number) $vat_number ); 

Parameters (3)

0. $validation_result (unknown)
The validation result.
1. $country (number)
The country.
2. $vat_number (number)
The vat number.

Usage

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

Defined (1)

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

/src/plugin-main.php  
  1. return apply_filters('wc_aelia_euva_eu_vat_number_raw_validation_result', $validation_result, $country, $vat_number);