Tips on Customizing WP Mail Logging by MailPoet

How to Hide the "WP Mail Log" Admin Menu

function plt_hide_wp_mail_logging_menus() {
	//Hide the "Tools → WP Mail Log" menu.
	remove_submenu_page('tools.php', 'wpml_plugin_log');
}

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

Where do I put this code?

How to Hide the "Redux Framework News" Dashboard Widget

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

	//Remove the "Redux Framework News" widget.
	remove_meta_box('redux_dashboard_widget', 'dashboard', 'side');
}

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