Merge pull request #10296 from shivapoudel/remove-meta
Move remove meta box to its original method
This commit is contained in:
commit
5875523808
|
@ -118,7 +118,6 @@ class WC_Admin_Meta_Boxes {
|
|||
add_meta_box( 'postexcerpt', __( 'Product Short Description', 'woocommerce' ), 'WC_Meta_Box_Product_Short_Description::output', 'product', 'normal' );
|
||||
add_meta_box( 'woocommerce-product-data', __( 'Product Data', 'woocommerce' ), 'WC_Meta_Box_Product_Data::output', 'product', 'normal', 'high' );
|
||||
add_meta_box( 'woocommerce-product-images', __( 'Product Gallery', 'woocommerce' ), 'WC_Meta_Box_Product_Images::output', 'product', 'side', 'low' );
|
||||
remove_meta_box( 'commentsdiv', 'product', 'normal' );
|
||||
|
||||
// Orders
|
||||
foreach ( wc_get_order_types( 'order-meta-boxes' ) as $type ) {
|
||||
|
@ -128,7 +127,6 @@ class WC_Admin_Meta_Boxes {
|
|||
add_meta_box( 'woocommerce-order-notes', sprintf( __( '%s Notes', 'woocommerce' ), $order_type_object->labels->singular_name ), 'WC_Meta_Box_Order_Notes::output', $type, 'side', 'default' );
|
||||
add_meta_box( 'woocommerce-order-downloads', __( 'Downloadable Product Permissions', 'woocommerce' ) . wc_help_tip( __( 'Note: Permissions for order items will automatically be granted when the order status changes to processing/completed.', 'woocommerce' ) ), 'WC_Meta_Box_Order_Downloads::output', $type, 'normal', 'default' );
|
||||
add_meta_box( 'woocommerce-order-actions', sprintf( __( '%s Actions', 'woocommerce' ), $order_type_object->labels->singular_name ), 'WC_Meta_Box_Order_Actions::output', $type, 'side', 'high' );
|
||||
remove_meta_box( 'submitdiv', $type, 'side' );
|
||||
}
|
||||
|
||||
// Coupons
|
||||
|
@ -142,8 +140,9 @@ class WC_Admin_Meta_Boxes {
|
|||
remove_meta_box( 'postexcerpt', 'product', 'normal' );
|
||||
remove_meta_box( 'product_shipping_classdiv', 'product', 'side' );
|
||||
remove_meta_box( 'pageparentdiv', 'product', 'side' );
|
||||
remove_meta_box( 'commentstatusdiv', 'product', 'normal' );
|
||||
remove_meta_box( 'commentsdiv', 'product', 'normal' );
|
||||
remove_meta_box( 'commentstatusdiv', 'product', 'side' );
|
||||
remove_meta_box( 'commentstatusdiv', 'product', 'normal' );
|
||||
remove_meta_box( 'woothemes-settings', 'shop_coupon', 'normal' );
|
||||
remove_meta_box( 'commentstatusdiv', 'shop_coupon', 'normal' );
|
||||
remove_meta_box( 'slugdiv', 'shop_coupon', 'normal' );
|
||||
|
@ -153,6 +152,7 @@ class WC_Admin_Meta_Boxes {
|
|||
remove_meta_box( 'woothemes-settings', $type, 'normal' );
|
||||
remove_meta_box( 'commentstatusdiv', $type, 'normal' );
|
||||
remove_meta_box( 'slugdiv', $type, 'normal' );
|
||||
remove_meta_box( 'submitdiv', $type, 'side' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue