Skip to content

Instantly share code, notes, and snippets.

@nicrame
nicrame / wc_auto_complete_virtual.php
Created Jan 14, 2022 — forked from katdidit/wc_auto_complete_virtual.php
Auto Complete all WooCommerce virtual orders
View wc_auto_complete_virtual.php
<?php // only copy this line if needed
/**
* Auto Complete all WooCommerce virtual orders.
*
* @param int $order_id The order ID to check
* @return void
*/
function custom_woocommerce_auto_complete_virtual_orders( $order_id ) {