How to Hide OpenGraph.xyz Admin Menus

function plt_hide_opengraph_xyz_menus() {
	//Hide "OpenGraph".
	remove_menu_page('edit.php?post_type=opengraph_template');
	//Hide "OpenGraph → Installed Templates".
	remove_submenu_page('edit.php?post_type=opengraph_template', 'edit.php?post_type=opengraph_template');
	//Hide "OpenGraph → Add New Template".
	remove_submenu_page('edit.php?post_type=opengraph_template', 'opengraph_template_selection');
	//Hide "OpenGraph → Settings".
	remove_submenu_page('edit.php?post_type=opengraph_template', 'og-xyz-settings');
}

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

Where do I put this code?