Tips on Customizing TOCHAT.BE

How to Hide TOCHAT.BE Admin Menus

function plt_hide_tochat_be_menus() {
	//Hide "TOCHAT.BE".
	remove_menu_page('to-chat-be-whatsapp');
	//Hide "TOCHAT.BE → Agents".
	remove_submenu_page('to-chat-be-whatsapp', 'edit.php?post_type=tochatbe_agent');
	//Hide "TOCHAT.BE → Appearence".
	remove_submenu_page('to-chat-be-whatsapp', 'to-chat-be-whatsapp_appearence');
	//Hide "TOCHAT.BE → Settings".
	remove_submenu_page('to-chat-be-whatsapp', 'to-chat-be-whatsapp_settings');
	//Hide "TOCHAT.BE → Shortcode".
	remove_submenu_page('to-chat-be-whatsapp', 'to-chat-be-whatsapp_shortcode');
	//Hide "TOCHAT.BE → GDPR".
	remove_submenu_page('to-chat-be-whatsapp', 'to-chat-be-whatsapp_gdpr');
	//Hide "TOCHAT.BE → Google Analytics".
	remove_submenu_page('to-chat-be-whatsapp', 'to-chat-be-google_analytics');
	//Hide "TOCHAT.BE → Facebook Analytics".
	remove_submenu_page('to-chat-be-whatsapp', 'to-chat-be-facebook_analytics');
	//Hide "TOCHAT.BE → Click Log".
	remove_submenu_page('to-chat-be-whatsapp', 'to-chat-be-whatsapp_click-log');
}

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

Where do I put this code?

How to Hide TOCHAT.BE Meta Boxes

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

	//Hide the "TOCHAT.BE" meta box.
	remove_meta_box('tochatbe-mod-metabox', $screen->id, 'side');
	//Hide the "Agent Data" meta box.
	remove_meta_box('tochatbe-agent-metabox', $screen->id, 'normal');
}

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

How to Hide the "TOCHAT.BE Analytics" Dashboard Widget

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

	//Remove the "TOCHAT.BE Analytics" widget.
	remove_meta_box('tochatbe_log_dashboard_widget', 'dashboard', 'normal');
}

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