Tips on Customizing WordPress Translation plugin for Post, Pages & WooCommerce products. Tranzly IO AI DeepL automatic WordPress Translator.

How to Hide the "Tranzly" Admin Menu

function plt_hide_tranzly_menus() {
	//Hide the "Tranzly" menu.
	remove_menu_page('tranzly');
}

add_action('admin_menu', 'plt_hide_tranzly_menus', 1000000000);

Where do I put this code?

How to Hide Tranzly - AI DeepL Translation Plugin Meta Boxes

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

	//Hide the "Tranzly Translation" meta box.
	remove_meta_box('tranzly_box_id', $screen->id, 'side');
	//Hide the "Tranzly Translator" meta box.
	remove_meta_box('tranzly_tranzly_box_id', $screen->id, 'side');
}

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