How to Hide the "WP Generator Remover Setting" Admin Menu

function plt_hide_wp_generator_remover_dawsun_menus() {
	//Hide the "Settings → WP Generator Remover Setting" menu.
	remove_submenu_page('options-general.php', 'wp_generator_remover_by_dawsun');
}

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

Where do I put this code?