Tips on Customizing Email Subscribers & Newsletters – Simple and Effective Email Marketing WordPress Plugin

How to Hide Email Subscribers & Newsletters Admin Menus

function plt_hide_email_subscribers_menus() {
	//Hide "Tools → Scheduled Actions".
	remove_submenu_page('tools.php', 'action-scheduler');

	//Hide "Email Subscribers".
	remove_menu_page('es_dashboard');
	//Hide "Email Subscribers → Dashboard".
	remove_submenu_page('es_dashboard', 'es_dashboard');
	//Hide "Email Subscribers → Audience".
	remove_submenu_page('es_dashboard', 'es_subscribers');
	//Hide "Email Subscribers → Lists".
	remove_submenu_page('es_dashboard', 'es_lists');
	//Hide "Email Subscribers → Forms".
	remove_submenu_page('es_dashboard', 'es_forms');
	//Hide "Email Subscribers → Campaigns".
	remove_submenu_page('es_dashboard', 'es_campaigns');
	//Hide "Email Subscribers → Workflows".
	remove_submenu_page('es_dashboard', 'es_workflows');
	//Hide "Email Subscribers → Post Notifications".
	remove_submenu_page('es_dashboard', 'es_notifications');
	//Hide "Email Subscribers → Broadcast".
	remove_submenu_page('es_dashboard', 'es_newsletters');
	//Hide "Email Subscribers → Reports".
	remove_submenu_page('es_dashboard', 'es_reports');
	//Hide "Email Subscribers → Settings".
	remove_submenu_page('es_dashboard', 'es_settings');
	//Hide "Email Subscribers → Help & Info".
	remove_submenu_page('es_dashboard', 'es_general_information');
	//Hide "Email Subscribers → 🔥  Go Pro".
	remove_submenu_page('es_dashboard', 'es_pricing');
}

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

Where do I put this code?

How to Hide the "Available Keywords" Meta Box

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

	//Hide the "Available Keywords" meta box.
	remove_meta_box('es_template_meta_box', $screen->id, 'normal');
}

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