How to Hide the "Widget Options" Admin Menu

function plt_hide_widget_options_menus() {
	//Hide the "Settings → Widget Options" menu.
	remove_submenu_page('options-general.php', 'widgetopts_plugin_settings');
}

add_action('admin_menu', 'plt_hide_widget_options_menus', 11);

Where do I put this code?