Skip to content

Instantly share code, notes, and snippets.

@dennisnissle
Created November 27, 2017 14:52
Show Gist options
  • Save dennisnissle/01d28cba32c20e4a7a308eb4bf86de3e to your computer and use it in GitHub Desktop.
Save dennisnissle/01d28cba32c20e4a7a308eb4bf86de3e to your computer and use it in GitHub Desktop.
Disable instant order confirmation in Germanized
<?php
add_filter( 'woocommerce_gzd_instant_order_confirmation', 'my_child_disable_instant_order_confirmation', 1, 10 );
function my_child_disable_instant_order_confirmation( $disable ) {
return false;
}
?>
@tolmachinski
Copy link

thank you so much

@tyrann0us
Copy link

Can be simplified:

add_filter( 'woocommerce_gzd_instant_order_confirmation', '__return_false' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment