function plt_hide_wp_head_cleaner_menus() { //Hide the "Settings → wp_head() cleaner" menu. remove_submenu_page('options-general.php', 'wp_head_cleaner'); } add_action('admin_menu', 'plt_hide_wp_head_cleaner_menus', 11);
Where do I put this code?