-
Home
-
GoWP Better WooCommerce Store Notices
- Tips
function plt_hide_gowp_better_woocommerce_store_notices_menus() {
//Hide the "Store Notices" menu.
remove_menu_page('edit.php?post_type=bwcsn_shop_notice');
//Hide the "Store Notices → Store Notices" menu.
remove_submenu_page('edit.php?post_type=bwcsn_shop_notice', 'edit.php?post_type=bwcsn_shop_notice');
//Hide the "Store Notices → Add New Post" menu.
remove_submenu_page('edit.php?post_type=bwcsn_shop_notice', 'post-new.php?post_type=bwcsn_shop_notice');
}
add_action('admin_menu', 'plt_hide_gowp_better_woocommerce_store_notices_menus', 15);
Where do I put this code?