function plt_hide_stock_update_for_wc_menus() { //Hide the "Stock Update" menu. remove_menu_page('wc-product-stock-update'); } add_action('admin_menu', 'plt_hide_stock_update_for_wc_menus', 11);
Where do I put this code?