Tips on Customizing Open Graph and Twitter Card Tags

How to Hide the "Open Graph and Twitter Card Tags" Admin Menu

function plt_hide_wonderm00ns_simple_facebook_open_graph_tags_menus() {
	//Hide the "Settings → Open Graph and Twitter Card Tags" menu.
	remove_submenu_page('options-general.php', 'class-webdados-fb-open-graph-admin.php');
}

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

Where do I put this code?

How to Hide Open Graph and Twitter Card Tags Meta Boxes

function plt_hide_wonderm00ns_simple_facebook_open_graph_tags_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Open Graph and Twitter Card Tags" meta box.
	remove_meta_box('webdados_fb_open_graph', $screen->id, 'advanced');
	//Hide the "Excerpt" meta box.
	remove_meta_box('postexcerpt', $screen->id, 'normal');
}

add_action('add_meta_boxes', 'plt_hide_wonderm00ns_simple_facebook_open_graph_tags_metaboxes', 20);