WC_Admin_Meta_Boxes::remove_meta_boxes()publicWC 1.0

Remove bloat.

Method of the class: WC_Admin_Meta_Boxes{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Admin_Meta_Boxes = new WC_Admin_Meta_Boxes();
$WC_Admin_Meta_Boxes->remove_meta_boxes();

WC_Admin_Meta_Boxes::remove_meta_boxes() code WC 8.7.0

public function remove_meta_boxes() {
	remove_meta_box( 'postexcerpt', 'product', 'normal' );
	remove_meta_box( 'product_shipping_classdiv', 'product', 'side' );
	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' );

	foreach ( wc_get_order_types( 'order-meta-boxes' ) as $type ) {
		remove_meta_box( 'commentsdiv', $type, 'normal' );
		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' );
	}
}