Created
December 15, 2017 18:03
-
-
Save webdados/d2f525e92ddb4773b39d1e1ed1d3d9a4 to your computer and use it in GitHub Desktop.
Auto cancellation of WooCommerce Multibanco orders if "Manage stock" and "Hold stock (minutes)" are configured
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Multibanco IfThen - Cancel orders if "Manage stock" and "Hold stock (minutes)" are configured - Be advised that the Multibanco reference will still be active and can be paid | |
add_filter( 'multibanco_ifthen_cancel_unpaid_orders', '__return_true' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment