wc_aelia_euva_report_fx_provider_class

The WooCommerce EU VAT Assistant wc aelia euva report fx provider class hook.

Description

apply_filters( 'wc_aelia_euva_report_fx_provider_class', (string) $aelia_wc_eu_vat_assistant_exchange_rates_ecb_historical_model ); 

Parameters (1)

0. $aelia_wc_eu_vat_assistant_exchange_rates_ecb_historical_model (string) => '\Aelia\WC\EU_VAT_Assistant\Exchange_Rates_ECB_Historical_Model'
The aelia wc eu vat assistant exchange rates ecb historical model.

Usage

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

Defined (1)

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

/src/lib/classes/reporting/reports/base/base_report.php  
  1. $exchange_rate_provider_class = apply_filters('wc_aelia_euva_report_fx_provider_class',