mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-29 11:32:21 +08:00
6 lines
310 B
Text
6 lines
310 B
Text
add_filter( 'woocommerce_bacs_process_payment_order_status', 'set_process_payment_order_status_on_hold', 10 );
|
|
add_filter( 'woocommerce_cod_process_payment_order_status', 'set_process_payment_order_status_on_hold', 10 );
|
|
|
|
function set_process_payment_order_status_on_hold( $status ) {
|
|
return 'on-hold';
|
|
}
|