woocommerce_quickpay_currency

The WooCommerce QuickPay woocommerce quickpay currency hook.

Description

apply_filters( 'woocommerce_quickpay_currency', (unknown) $currency, (unknown) $order ); 

Parameters (2)

0. $currency (unknown)
The currency.
1. $order (unknown)
The order.

Usage

To run the hook, copy the example below.
  1. $currency = apply_filters( 'woocommerce_quickpay_currency', $currency, $order ); 
  2.  
  3. if ( !empty( $currency ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_quickpay_currency callback 
  2. function filter_woocommerce_quickpay_currency( $currency, $order ) { 
  3. // make filter magic happen here... 
  4. return $currency
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_quickpay_currency', 'filter_woocommerce_quickpay_currency', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_quickpay_currency', 'filter_woocommerce_quickpay_currency', 10, 2 ); 

Defined (1)

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

/woocommerce-quickpay.php  
  1. $currency = apply_filters('woocommerce_quickpay_currency', $currency, $order);