-
Home
-
YITH WooCommerce Product Bundles
- Tips
function plt_hide_yith_woocommerce_product_bundles_dashboard_widgets() {
$screen = get_current_screen();
if ( !$screen ) {
return;
}
//Remove the "YITH Latest Updates" widget.
remove_meta_box('yith_dashboard_products_news', 'dashboard', 'normal');
//Remove the "Latest news from YITH Blog" widget.
remove_meta_box('yith_dashboard_blog_news', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'plt_hide_yith_woocommerce_product_bundles_dashboard_widgets', 20);
Where do I put this code?