AI Verified

Name

Change COD default order status to On-hold

About

Makes On-hold the orders using COD and BACS

Language

PHP

Rating

Voted: 0 by 0 user(s)

Codevault

Jaypee

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: older

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

Website/ Profile URL:

https://maglacasdigital.com/

History

Last modified:

21/11/2022

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Change COD default order status to On-hold

 
                    
1/*
2* Makes On-hold the orders using COD and BACS
3*/
4add_filter( 'woocommerce_bacs_process_payment_order_status', 'set_process_payment_order_status_on_hold', 10 );
5add_filter( 'woocommerce_cod_process_payment_order_status', 'set_process_payment_order_status_on_hold', 10 );
6 
7function set_process_payment_order_status_on_hold( $status ) {
8 return 'on-hold';
9}

0

Related Snippets

Please see some snippets below related to this snippet..

WooCommerce

AI Verified

0

Change the arrangement of fields in the checkout area or delete fields

Added: 4 months ago

Last Updated: 2 months ago

Customize the fields in the checkout. You can change the fields in the checkout area, sort them differently or delete individual fields.

WooCommerce

AI Verified

0

Show percent savings on sale

Added: 4 months ago

Last Updated: 2 months ago

You work a lot with offer prices? Then show your visitors how much they have saved compared to the original price.

WooCommerce

AI Verified

0

WooCommerce Show “NEW” Badge On Newly Added Products

Added: 3 months ago

Last Updated: 2 months ago

This guide shows you how to add the next “NEW” on products which have been added to your WooCommerce store in the last 10 days. Of course you can output whatever text you like and change the number of...

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WooCommerce

AI Verified

0

Makes read terms of payment checked by default

Added: 2 months ago

Last Updated: 2 months ago

Check out page makes read terms of payment checked by default

WooCommerce

AI Verified

0

Change COD default order status to On-hold

Added: 2 months ago

Last Updated: 2 months ago

Makes On-hold the orders using COD and BACS

JavaScript

Unverified

0

Text fields makes autocomplete off

Added: 2 months ago

Last Updated: 2 months ago

Make text field autocomplete off using the Fluent forms plugin