Skip to content

Instantly share code, notes, and snippets.

View nhadsall's full-sized avatar

Nathan nhadsall

View GitHub Profile
@nhadsall
nhadsall / refund.php
Created October 11, 2022 00:52 — forked from growdev/refund.php
Bulk Refund WooCommerce Orders using CSV file input.
<?php
/**
* Bulk Refund Orders
*
* This script expects a csv file with following columns:
* - Order ID 1002
* - Reason for refund 'Item was oversold.'
* - Amount to refund '34.56'
* - Refund payment true/false
* - Restock item true/false