How to Hide HivePress Admin Menus

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

	//Hide "HivePress".
	remove_menu_page('hp_settings');
	//Hide "HivePress → Settings".
	remove_submenu_page('hp_settings', 'hp_settings');
	//Hide "HivePress → Emails".
	remove_submenu_page('hp_settings', 'edit.php?post_type=hp_email');
	//Hide "HivePress → Templates".
	remove_submenu_page('hp_settings', 'edit.php?post_type=hp_template');
	//Hide "HivePress → Themes".
	remove_submenu_page('hp_settings', 'hp_themes');
	//Hide "HivePress → Extensions".
	remove_submenu_page('hp_settings', 'hp_extensions');

	//Hide "Listings".
	remove_menu_page('edit.php?post_type=hp_listing');
	//Hide "Listings → Listings".
	remove_submenu_page('edit.php?post_type=hp_listing', 'edit.php?post_type=hp_listing');
	//Hide "Listings → Add New".
	remove_submenu_page('edit.php?post_type=hp_listing', 'post-new.php?post_type=hp_listing');
	//Hide "Listings → Categories".
	remove_submenu_page('edit.php?post_type=hp_listing', 'edit-tags.php?taxonomy=hp_listing_category&post_type=hp_listing');
	//Hide "Listings → Attributes".
	remove_submenu_page('edit.php?post_type=hp_listing', 'edit.php?post_type=hp_listing_attribute');

	//Hide "Vendors".
	remove_menu_page('edit.php?post_type=hp_vendor');
	//Hide "Vendors → Vendors".
	remove_submenu_page('edit.php?post_type=hp_vendor', 'edit.php?post_type=hp_vendor');
	//Hide "Vendors → Add New".
	remove_submenu_page('edit.php?post_type=hp_vendor', 'post-new.php?post_type=hp_vendor');
	//Hide "Vendors → Categories".
	remove_submenu_page('edit.php?post_type=hp_vendor', 'edit-tags.php?taxonomy=hp_vendor_category&post_type=hp_vendor');
	//Hide "Vendors → Attributes".
	remove_submenu_page('edit.php?post_type=hp_vendor', 'edit.php?post_type=hp_vendor_attribute');
}

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

Where do I put this code?