Let’s say you disabled product tags in your shop. Or maybe your store set up requires no short description. Or even, you want to hide a custom “metabox” (e.g. one of those widgets that appear on the Edit Product page). Either way, removing metaboxes and making the Edit Product page much cleaner is quite easy.

You just need the “ID” of the metabox and its position (‘normal’ or ‘side’, depending on whether it’s in the sidebar or not), and then this little PHP snippet. Enjoy!

Hide specific metaboxes @ WooCommerce Edit Product Page

Snippet (PHP): Hide Custom Metaboxes @ WooCommerce Edit Product Page

 * @snippet       Remove WooCommerce Edit Product Page Boxes
 * @how-to        Get CustomizeWoo.com FREE
 * @sourcecode    https://businessbloomer.com/?p=109727
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 3.5.4
 * @donate $9     https://businessbloomer.com/bloomer-armada/

add_action( 'add_meta_boxes_product', 'bbloomer_remove_metaboxes_edit_product', 9999 );

function bbloomer_remove_metaboxes_edit_product() {

        // e.g. remove short description
        remove_meta_box( 'postexcerpt', 'product', 'normal' );

        // e.g. remove product tags
        remove_meta_box( 'tagsdiv-product_tag', 'product', 'side' );



Leave a Reply