-
Home
-
Allada T-shirt Designer for Woocommerce – Custom Product Designer for T-shirt personalization and design
- Tips
function plt_hide_allada_tshirt_designer_for_woocommerce_metaboxes() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Hide the "Colors palettes" meta box.
remove_meta_box('atd-colors-palette-box', $screen->id, 'advanced');
//Hide the "Cliparts" meta box.
remove_meta_box('atd-cliparts-box', $screen->id, 'advanced');
//Hide the "Parts" meta box.
remove_meta_box('atd-metas-parts', $screen->id, 'advanced');
//Hide the "Fonts" meta box.
remove_meta_box('atd-metas-fonts', $screen->id, 'advanced');
//Hide the "Cliparts" meta box.
remove_meta_box('atd-metas-cliparts', $screen->id, 'advanced');
//Hide the "Team" meta box.
remove_meta_box('atd-metas-team', $screen->id, 'advanced');
}
add_action('add_meta_boxes', 'plt_hide_allada_tshirt_designer_for_woocommerce_metaboxes', 20);
Where do I put this code?