How to Hide the "Duplicate Post" Admin Menu

function plt_hide_duplicate_post_menus() {
	//Hide the "Settings → Duplicate Post" menu.
	remove_submenu_page('options-general.php', 'duplicatepost');
}

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

Where do I put this code?