Meghan King temporarily lost custody of her three kids to her ex-husband Jim Edmonds because she allegedly gave one of their twins unprescribed medication — and asked the school nurse to do the same.

Page Six is told that the “Real Housewives of Orange County” alum has allegedly given Hayes, 7, Ritalin multiple times, even though he has not been diagnosed with attention-deficit/hyperactivity disorder (ADHD).

Our source claims King, 41, asked Hayes’ school nurse to administer the medication, which prompted Child Protective Services (CPS) to get involved.

We’re told Edmonds, 55, and his wife, Kortnie Edmonds , were at their Tennessee home when he got the call from CPS, so the couple flew back to Missouri.

At present, our source says King is allowed to have supervised visits with Haye

See Full Page