Tips on Customizing Join.chat

How to Hide the "Join.chat" Admin Menu

function plt_hide_creame_whatsapp_me_menus() {
	//Hide the "Settings → Join.chat" menu.
	remove_submenu_page('options-general.php', 'joinchat');
}

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

Where do I put this code?

How to Hide the "Join.chat" Meta Box

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

	//Hide the "Join.chat" meta box.
	remove_meta_box('joinchat', $screen->id, 'side');
}

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