How to Hide the "Endpoints" Admin Menu

function plt_hide_wpbuoy_endpoint_manager_menus() {
	//Hide the "Endpoints" menu.
	remove_menu_page('wpbyem');
}

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

Where do I put this code?