Tips on Customizing Shield: Security, Scanning & Protection For All

How to Hide Shield Security Admin Menus

function plt_hide_wp_simple_firewall_menus() {
	//Hide "Shield Security".
	//Hide "Shield Security → Security Dashboard".
	remove_submenu_page('icwp-wpsf', 'icwp-wpsf-insights');
	//Hide "Shield Security → Settings".
	remove_submenu_page('icwp-wpsf', 'icwp-wpsf-plugin');
	//Hide "Shield Security → Go Pro!".
	remove_submenu_page('icwp-wpsf', 'icwp-wpsf-license');

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

Where do I put this code?

How to Hide the "Shield" Dashboard Widget

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

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

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