Follow CBSPHILLY Facebook | Twitter

HARRISBURG (CBS/AP) — Former Bedford County District Attorney William Higgins, who is accused of tipping off female drug dealers and giving them lenient treatment in exchange for sex, has pleaded guilty to corruption charges.

READ MORE: New Study Suggests Dogs Can Sniff Out COVID-19

entered his plea Wednesday, according to Attorney General Josh Shapiro.

76ers Investigating Allegations Of President Bryan Colangelo Blasting Embiid, Others Via Twitter

READ MORE: Here Is Where The Pennsylvania Primary Race For The Senate Seat Stands

Higgins resigned in early April after the charges were filed, saying in a statement that he’d been accused of conduct “unbecoming of a district attorney” and “unbecoming of a husband and father.”

Police said Higgins also revealed the names of confidential informants to female drug dealers with whom he was having sex, or to their friends and associates.

He pleaded guilty to 11 counts, including official oppression.

MORE NEWS: Police: Man Allegedly Killed In West Philly Shooting By Girlfriend's Ex-Boyfriend

The 43-year-old Republican was sworn into office in 2004 as the state’s youngest district attorney.