woocommerce_quickpay_transaction_link_params

The WooCommerce QuickPay woocommerce quickpay transaction link params hook.

Description

apply_filters( 'woocommerce_quickpay_transaction_link_params', (unknown) $merged_params, (unknown) $order, (unknown) $payment_method ); 

Parameters (3)

0. $merged_params (unknown)
The merged params.
1. $order (unknown)
The order.
2. $payment_method (unknown)
The payment method.

Usage

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

Defined (1)

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

/classes/api/woocommerce-quickpay-api-transaction.php  
  1. $params = apply_filters( 'woocommerce_quickpay_transaction_link_params', $merged_params, $order, $payment_method );