woocommerce_refund_created

woocommerce_refund_created

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_refund_created') is found 1 times:

  • /includes/wc-order-functions.php line 666
     
    		$order->set_date_modified( time() );
    		$order->save();
    
    		do_action( 'woocommerce_refund_created', $refund->get_id(), $args );
    		do_action( 'woocommerce_order_refunded', $order->get_id(), $refund->get_id() );
    
    	} catch ( Exception $e ) {
    		if ( isset( $refund ) && is_a( $refund, 'WC_Order_Refund' ) ) {
    			$refund->delete( true );
    		}
    

See this hook used in plugins: