Skip to content

Instantly share code, notes, and snippets.

Avatar

Scott Cropper scotcrop

View GitHub Profile
@scotcrop
scotcrop / custom-woocommerce-order-status.php
Last active May 8, 2019
Adding and updating a custom shop order post status when upgrading WooCommerce 2.1 and below to 2.2 and up
View custom-woocommerce-order-status.php
<?php
/*
Plugin Name: Custom Order Status for WooCommerce Shop Orders
Plugin URI: http://scotcrop.com/2014/10/11/adding-and-updating-a-custom-shop-order-post-status-when-upgrading-woocommerce-2-1-and-below-to-2-2-and-up/
Description: Creates a new WooCommerce Order Status called In-Production and updates shop orders that were converted to a post status of 'publish' after upgrading from WooCommerce 2.1 and earlier to 2.2 and later.
Version: 1.0
Author: Scott Cropper
Author URI: http://scotcrop.com
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html