woocommerce_api_edit_order_refund_data
Usage
add_filter( 'woocommerce_api_edit_order_refund_data', 'wp_kama_woocommerce_api_edit_order_refund_data_filter', 10, 4 ); /** * Function for `woocommerce_api_edit_order_refund_data` filter-hook. * * @param $data * @param $ID * @param $order_id * @param $that * * @return */ function wp_kama_woocommerce_api_edit_order_refund_data_filter( $data, $ID, $order_id, $that ){ // filter... return $data; }
- $data
- -
- $ID
- -
- $order_id
- -
- $that
- -
Where the hook is called
woocommerce_api_edit_order_refund_data
woocommerce/includes/legacy/api/v3/class-wc-api-orders.php 1734
$data = apply_filters( 'woocommerce_api_edit_order_refund_data', $data, $refund->ID, $order_id, $this );
woocommerce/includes/legacy/api/v2/class-wc-api-orders.php 1689
$data = apply_filters( 'woocommerce_api_edit_order_refund_data', $data, $refund->ID, $order_id, $this );