Skip to content

Instantly share code, notes, and snippets.

View scotcrop's full-sized avatar

Scott scotcrop

View GitHub Profile
@scotcrop
scotcrop / custom-woocommerce-order-status.php
Last active May 8, 2019 05:10
Adding and updating a custom shop order post status when upgrading WooCommerce 2.1 and below to 2.2 and up
<?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