Are there any hook or filter when refund is done through admin -woocommerce

I am using Woocommerce plugin for my custom product .and I am stuck with a situation .

Does Woo commerce provide any hook or filter when refund is done through admin panel and refund will be manually.For More details please see attached image

2 s
2

Although this answer is little late but anyone else may get benefit from it. The woocommerce_order_refunded hook is called when an order is refunded. Use the following example:

// add the action 
add_action( 'woocommerce_order_refunded', 'action_woocommerce_order_refunded', 10, 2 ); 
// Do the magic
function action_woocommerce_order_refunded( $order_id, $refund_id ) 
{ 
  // Your code here
}

Leave a Comment