ℱK-convex functions on metric spaces