Tips on Customizing Shield Security – Scanners, Security Hardening, Brute Force Protection & Firewall

How to Hide Shield Security Admin Menus

function plt_hide_wp_simple_firewall_menus() {
	//Hide "Shield Security".
	remove_menu_page('icwp-wpsf');
	//Hide "Shield Security → Security Dashboard".
	remove_submenu_page('icwp-wpsf', 'icwp-wpsf-insights');
	//Hide "Shield Security → Scans".
	remove_submenu_page('icwp-wpsf', 'icwp-wpsf-scans-redirect');
	//Hide "Shield Security → IP Manager".
	remove_submenu_page('icwp-wpsf', 'icwp-wpsf-ips-redirect');
	//Hide "Shield Security → Activity Log".
	remove_submenu_page('icwp-wpsf', 'icwp-wpsf-audit-redirect');
	//Hide "Shield Security → Traffic Log".
	remove_submenu_page('icwp-wpsf', 'icwp-wpsf-traffic-redirect');
	//Hide "Shield Security → Configuration".
	remove_submenu_page('icwp-wpsf', 'icwp-wpsf-plugin');
	//Hide "Shield Security → Go PRO!".
	remove_submenu_page('icwp-wpsf', 'icwp-wpsf-pro-redirect');
}

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

Where do I put this code?

How to Hide the "Shield Security: Overview" Dashboard Widget

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

	//Remove the "Shield Security: Overview" widget.
	remove_meta_box('icwp-wpsf-dashboard_widget', 'dashboard', 'normal');
}

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