woocommerce_refund_deleted

woocommerce_refund_deleted

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_refund_deleted') is found 1 times:

  • /includes/class-wc-ajax.php line 2249
    2245
    2246
    2247
    2248
    2249
    2250
    2251
    2252
    2253
    2254
    2255
            if ( $refund_id && 'shop_order_refund' === OrderUtil::get_order_type( $refund_id ) ) {
                $refund   = wc_get_order( $refund_id );
                $order_id = $refund->get_parent_id();
                $refund->delete( true );
                do_action( 'woocommerce_refund_deleted', $refund_id, $order_id );
            }
        }
        wp_die();
    }
     
    /**