function plt_hide_shortlink_manager_tmp_menus() { //Hide the "Shortlink Manager" menu. remove_menu_page('shortlink-manager'); } add_action('admin_menu', 'plt_hide_shortlink_manager_tmp_menus', 11);
Where do I put this code?