Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
* Auto Complete all WooCommerce orders.
add_action( 'wc_custom_thankyou_successful', 'custom_woocommerce_auto_complete_order' );
function custom_woocommerce_auto_complete_order( $order ) {
if ( ! $order ) {
$order->update_status( 'completed' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.