woocommerce_quickpay_is_request_to_change_payment

The WooCommerce QuickPay woocommerce quickpay is request to change payment hook.

Description

apply_filters( 'woocommerce_quickpay_is_request_to_change_payment', (unknown) $is_request_to_change_payment ); 

Parameters (1)

0. $is_request_to_change_payment (unknown)
The is request to change payment.

Usage

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

Defined (1)

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

/classes/base/woocommerce-quickpay-base-order.php  
  1. return apply_filters( 'woocommerce_quickpay_is_request_to_change_payment', $is_request_to_change_payment );