woocommerce_pos_order_response_payment_details
The WooCommerce POS woocommerce pos order response payment details hook.
Description
Parameters (2)
- 0. $payment (unknown)
- The payment.
- 1. $response (unknown)
- The response.
Usage
- To run the hook, copy the example below.
- $payment = apply_filters( 'woocommerce_pos_order_response_payment_details', $payment, $response );
- if ( !empty( $payment ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the woocommerce_pos_order_response_payment_details callback
- function filter_woocommerce_pos_order_response_payment_details( $payment, $response ) {
- // make filter magic happen here...
- return $payment;
- };
- // add the filter
- add_filter( 'woocommerce_pos_order_response_payment_details', 'filter_woocommerce_pos_order_response_payment_details', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'woocommerce_pos_order_response_payment_details', 'filter_woocommerce_pos_order_response_payment_details', 10, 2 );
Defined (2)
The filter is defined in the following location(s).
- /includes/apiv2/class-wc-pos-orders.php
- return apply_filters( 'woocommerce_pos_order_response_payment_details', $payment, $response );
- /includes/api/class-wc-pos-orders.php
- return apply_filters( 'woocommerce_pos_order_response_payment_details', $payment, $order );