Tips on Customizing Click to Chat

How to Hide Click to Chat Admin Menus

function plt_hide_click_to_chat_for_whatsapp_menus() {
	//Hide the "Click to Chat" menu.
	remove_menu_page('click-to-chat');
	//Hide the "Click to Chat → Click to Chat" menu.
	remove_submenu_page('click-to-chat', 'click-to-chat');
	//Hide the "Click to Chat → Customize Styles" menu.
	remove_submenu_page('click-to-chat', 'click-to-chat-customize-styles');
}

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

Where do I put this code?

How to Hide the "Click to Chat" Meta Box

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

	//Hide the "Click to Chat" meta box.
	remove_meta_box('ht_ctc_settings_meta_box', $screen->id, 'side');
}

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