Tips on Customizing Widget for Zendesk Chat via API

How to Hide the "Zendesk Chat" Admin Menu

function plt_hide_widget_for_zendesk_chat_via_api_menus() {
	//Hide the "Settings → Zendesk Chat" menu.
	remove_submenu_page('options-general.php', 'widget-for-zendesk-chat-via-api');
}

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

Where do I put this code?

How to Hide Widget for Zendesk Chat via API Meta Boxes

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

	//Hide the "Widget for Zendesk Chat" meta box.
	remove_meta_box('ps_zendesk_chat_widget_api_code_metabox_post', $screen->id, 'side');
	//Hide the "Widget for Zendesk Chat" meta box.
	remove_meta_box('ps_zendesk_chat_widget_api_code_metabox_page', $screen->id, 'side');
}

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