remove wiaas from method name
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user