Tips on Customizing Translate WordPress and go Multilingual – Weglot

How to Hide the "Weglot" Admin Menu

function plt_hide_weglot_menus() {
	//Hide the "Weglot" menu.
	remove_menu_page('weglot-settings');
}

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

Where do I put this code?

How to Hide Weglot Translate Meta Boxes

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

	//Hide the "Weglot URLs" meta box.
	remove_meta_box('weglot_visual_editor_meta_box', $screen->id, 'side');
	//Hide the "Weglot URL Translate" meta box.
	remove_meta_box('weglot-url-translate', $screen->id, 'advanced');
}

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