Set default status to open #54

Merged
bilal.catic merged 4 commits from set-default-status-to-open into master 2018-11-05 00:03:10 +01:00
Showing only changes of commit 9e599617c4 - Show all commits

View File

@@ -22,9 +22,9 @@ class Wiaas_Order {
add_filter('woocommerce_register_post_type_shop_order', array(__CLASS__, 'manage_order_settings'));
add_filter( 'woocommerce_register_shop_order_post_statuses', array(__CLASS__, 'register_custom_wiaas_order_statuses'), 10, 1);
add_filter( 'woocommerce_register_shop_order_post_statuses', array(__CLASS__, 'register_custom_order_statuses'), 10, 1);
add_filter( 'wc_order_statuses', array(__CLASS__, 'add_custom_wiaas_statuses_to_list' ), 10, 1);
add_filter( 'wc_order_statuses', array(__CLASS__, 'add_custom_statuses_to_list' ), 10, 1);
add_filter( 'bulk_actions-edit-shop_order', array(__CLASS__, 'add_custom_statuses_to_bulk_edit' ), 10, 1);
@@ -216,7 +216,7 @@ class Wiaas_Order {
*
* @return array
*/
public static function register_custom_wiaas_order_statuses($order_statuses){
public static function register_custom_order_statuses($order_statuses){
// Status must start with "wc-"
$order_statuses['wc-open'] = array(
'label' => _x( 'Open', 'Order status', 'woocommerce' ),
@@ -236,7 +236,7 @@ class Wiaas_Order {
*
* @return array
*/
public static function add_custom_wiaas_statuses_to_list($order_statuses){
public static function add_custom_statuses_to_list($order_statuses){
$order_statuses['wc-open'] = _x( 'Open', 'Order status', 'woocommerce' );
return $order_statuses;
}