Tips on Customizing Popups by OptinMonster – Best WordPress Lead Generation Plugin

How to Hide the "OptinMonster" Admin Menu

function plt_hide_optinmonster_menus() {
	//Hide the "OptinMonster" menu.
	remove_menu_page('optin-monster-api-settings');
}

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

Where do I put this code?

How to Hide the "Please Connect OptinMonster" Dashboard Widget

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

	//Remove the "Please Connect OptinMonster" widget.
	remove_meta_box('optin_monster_db_widget', 'dashboard', 'normal');
}

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