Tips on Customizing Image optimization & Lazy Load by Optimole

How to Hide the "Optimole" Admin Menu

function plt_hide_optimole_wp_menus() {
	//Hide the "Media → Optimole" menu.
	remove_submenu_page('upload.php', 'optimole');
}

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

Where do I put this code?

How to Hide the "WordPress Guides/Tutorials" Dashboard Widget

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

	//Remove the "WordPress Guides/Tutorials" widget.
	remove_meta_box('themeisle', 'dashboard', 'normal');
}

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