Viewing 1 replies (of 1 total)
  • Thread Starter Luis Martins

    (@lmartins)

    To anwser my own question i’ve hidden the postbox with the following code:

    function mw_remove_postboxes() {
    
    	// Remove metaboxes from WooCommerce product management
    	remove_meta_box( 'wp-display-header', 'product', 'normal' );		// Breadcrumbs
    
    	// Remove metaboxes from Banners post type management
    	remove_meta_box( 'wp-display-header', 'banners', 'normal' );		// Breadcrumbs
    	remove_meta_box( 'wpseo_meta', 'banners', 'normal' );		// Breadcrumbs
    
    }
    add_action( 'do_meta_boxes' , 'mw_remove_postboxes' );
Viewing 1 replies (of 1 total)
  • The topic ‘Hide the header management on custom post types’ is closed to new replies.