Skip to content

Instantly share code, notes, and snippets.

@nicrame
nicrame / wc_auto_complete_virtual.php
Created January 14, 2022 15:39 — forked from katdidit/wc_auto_complete_virtual.php
Auto Complete all WooCommerce virtual orders
<?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 ) {