wc_aelia_eu_vat_assistant_convert

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

Description

apply_filters( 'wc_aelia_eu_vat_assistant_convert', (float) $float_1_00, (unknown) $order_currency, (unknown) $vat_currency, (unknown) $rounding_decimals ); 

Parameters (4)

0. $float_1_00 (float) => (float)1.00
The float 1 00.
1. $order_currency (unknown)
The order currency.
2. $vat_currency (unknown)
The vat currency.
3. $rounding_decimals (unknown)
The rounding decimals.

Usage

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

Defined (2)

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

/src/lib/classes/order/order.php  
  1. 'vat_currency_exchange_rate' => apply_filters('wc_aelia_eu_vat_assistant_convert', 
/src/lib/classes/integration/pdf_invoices_packing_slips/eu_invoice_helper.php  
  1. $price = apply_filters('wc_aelia_eu_vat_assistant_convert', 1, $this->order_currency, $this->vat_currency, 4);