How to Hide Easy Smooth Scroll Links Admin Menus

function plt_hide_easy_smooth_scroll_links_menus() {
	//Hide the "Settings → Easy Smooth Scroll Links" menu.
	remove_submenu_page('options-general.php', 'essl-plugin-options_options');
	//Hide the "Settings → Contact Us" menu.
	remove_submenu_page('options-general.php', 'essl-plugin-options_options-contact');
}

add_action('admin_menu', 'plt_hide_easy_smooth_scroll_links_menus', 1000000000);

Where do I put this code?