Tips on Customizing Weglot Translate – Translate your WordPress website and go multilingual

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 the "Weglot URL Translate" Meta Box

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

	//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);