Removing WP e-Commerce Meta Boxes

Nov 10, 2013 | WordPress

We had a very hard time finding any information on removing the meta boxes found when adding and/or editing products using the WP e-Commerce plugin. To keep the WordPress admin panel as simple as possible for our clients, we try to remove all unnecessary and unused options. This reduces their learning curve as-well-as the number of questions that would need to be asked/answered.

Note the following code is a bit different then removing meta boxes from the regular post and page edit screens. The following code is to be added to your theme’s functions.php file:

// remove WPSC meta boxes
function remove_wpsc_meta_boxes() {
remove_meta_box( 'wpsc_product_external_link_forms', 'wpsc-product', 'normal' );
remove_meta_box( 'wpsc_additional_desc', 'wpsc-product', 'normal' );
remove_meta_box( 'wpsc_product_download_forms', 'wpsc-product', 'normal' );
remove_meta_box( 'wpsc_product_taxes_forms', 'wpsc-product', 'side' );
remove_meta_box( 'postimagediv', 'wpsc-product', 'side' );
}
add_action( 'add_meta_boxes_wpsc-product', 'remove_wpsc_meta_boxes', 100);

Other meta boxes not included in the above code, but could be removed:

wpsc_product_variation_forms
tagsdiv-product_tag
wpsc_product_categorydiv
wpsc_price_control_forms
wpsc_stock_control_forms
wpsc_product_image_forms
wpsc_product_shipping_forms
wpsc_product_advanced_forms