Tips on Customizing Cerber Security, Antispam & Malware Scan

How to Hide WP Cerber Security, Antispam & Malware Scan Admin Menus

function plt_hide_wp_cerber_menus() {
	//Hide "WP Cerber".
	remove_menu_page('cerber-security');
	//Hide "WP Cerber → Dashboard".
	remove_submenu_page('cerber-security', 'cerber-security');
	//Hide "WP Cerber → Traffic Inspector".
	remove_submenu_page('cerber-security', 'cerber-traffic');
	//Hide "WP Cerber → User Policies".
	remove_submenu_page('cerber-security', 'cerber-users');
	//Hide "WP Cerber → Site Integrity".
	remove_submenu_page('cerber-security', 'cerber-integrity');
	//Hide "WP Cerber → Antispam".
	remove_submenu_page('cerber-security', 'cerber-recaptcha');
	//Hide "WP Cerber → Cerber.Hub".
	remove_submenu_page('cerber-security', 'cerber-nexus');
	//Hide "WP Cerber → Tools".
	remove_submenu_page('cerber-security', 'cerber-tools');
}

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

Where do I put this code?

How to Hide the "Cerber Quick View" Dashboard Widget

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

	//Remove the "Cerber Quick View" widget.
	remove_meta_box('cerber_quick', 'dashboard', 'normal');
}

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