in loco parentis
Latin, literally "in the place of a parent" (see parent).