Force COD orders to 'on hold'
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 // only copy if needed | |
/** | |
* Forces orders be marked as "on hold | |
*/ | |
function sv_wc_cod_order_status( $status ) { | |
return 'on-hold'; | |
} | |
add_filter( 'woocommerce_cod_process_payment_order_status', 'sv_wc_cod_order_status', 15 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment