function plt_hide_luckywp_table_of_contents_menus() { //Hide the "Settings → Table of Contents" menu. remove_submenu_page('options-general.php', 'lwptoc_settings'); } add_action('admin_menu', 'plt_hide_luckywp_table_of_contents_menus', 11);
Where do I put this code?