wc_aelia_eu_vat_assistant_eu_vat_report_exchange_rates

The WooCommerce EU VAT Assistant wc aelia eu vat assistant report exchange rates hook.

Description

apply_filters( 'wc_aelia_eu_vat_assistant_eu_vat_report_exchange_rates', (unknown) $rates, (unknown) $target_date, (unknown) $instance ); 

Parameters (3)

0. $rates (unknown)
The rates.
1. $target_date (unknown)
The target date.
2. $instance (unknown)
The instance.

Usage

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

Defined (1)

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

/src/lib/classes/reporting/reports/base/base_report.php  
  1. $this->vat_currency_exchange_rates[$target_date] = apply_filters('wc_aelia_eu_vat_assistant_eu_vat_report_exchange_rates',