Tips on Customizing Social Chat – Click To Chat App Button

How to Hide Social Chat Admin Menus

function plt_hide_wp_whatsapp_chat_menus() {
	//Hide "Social Chat".
	remove_menu_page('wp-whatsapp-chat');
	//Hide "Social Chat → Welcome".
	remove_submenu_page('wp-whatsapp-chat', 'wp-whatsapp-chat');
	//Hide "Social Chat → Premium".
	remove_submenu_page('wp-whatsapp-chat', 'wp-whatsapp-chat&tab=premium');
	//Hide "Social Chat → Button".
	remove_submenu_page('wp-whatsapp-chat', 'wp-whatsapp-chat&tab=button');
	//Hide "Social Chat → Box".
	remove_submenu_page('wp-whatsapp-chat', 'wp-whatsapp-chat&tab=box');
	//Hide "Social Chat → Contacts".
	remove_submenu_page('wp-whatsapp-chat', 'wp-whatsapp-chat&tab=contacts');
	//Hide "Social Chat → Display".
	remove_submenu_page('wp-whatsapp-chat', 'wp-whatsapp-chat&tab=display');
	//Hide "Social Chat → Settings".
	remove_submenu_page('wp-whatsapp-chat', 'wp-whatsapp-chat&tab=settings');
	//Hide "Social Chat → Scheme".
	remove_submenu_page('wp-whatsapp-chat', 'wp-whatsapp-chat&tab=scheme');
	//Hide "Social Chat → Suggestions".
	remove_submenu_page('wp-whatsapp-chat', 'wp-whatsapp-chat&tab=suggestions');
}

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

Where do I put this code?

How to Hide the "QuadLayers News" Dashboard Widget

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

	//Remove the "QuadLayers News" widget.
	remove_meta_box('wp-dashboard-widget-news', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_wp_whatsapp_chat_dashboard_widgets', 20);