Actress Kristin Chenoweth stepped back into her role as Glinda the Good Witch of the South from Wicked on Tuesday, offering mock advice to embattled New York City mayoral candidate Anthony Weiner (aka "Carlos Danger") for steering clear of future public embarassment.

"I'll teach you to zip your fly, you won't be that guy with a camera down his pants - ugh!" Chenoweth sang in an appearance on NBC's Tonight Show. "I'll teach you what tweets to tweet, something clean and sweet."

Broadway World reported that the tune, a reworking of the Wicked song "Popular," was written by Allen Kendall and Sharon Wheatley, who also wrote Avenue Zoo, parody of the musical Avenue Q for the Bronx Zoo.

Chenoweth's "social media dialysis" also included a message for Weiner's wife, former State Department aide Huma Abedin, who the actress said "should take a page from Hillary and become independent of her hubby."

"Seriously, Huma, woman to woman, if that guy doesn't zip up and unplug, kick him to the curb," Chenoweth told Abedin.

Watch Chenoweth's performance, aired Tuesday on NBC, below.

[h/t The New Civil Rights Movement]