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.9.8.1

do_action('woocommerce_refund_created') is found 1 times:

  • /includes/wc-order-functions.php line 731
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
        $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: