In its first season, "Supergirl" cast many actors from past DC Comics-based projects in key roles. That tradition will continue in a big way in the show's second season, as The CW has announced that Lynda Carter -- the star of the '70s "Wonder Woman" TV series -- will play the President of the United States on "Supergirl." She's slated to appear in multiple episodes, starting with the third installment of the second season, which will likely air in late October. No further details have yet been released.

Carter's casting is the payoff of previous plans revealed earlier this year by "Supergirl" executive producers Greg Berlanti and Andrew Kreisberg. "We had the perfect role for Lynda Carter, and we couldn't work out her schedule," Berlanti told reporters, including CBR News, at a press event this past March. "We're going to do it, we'll just do it next year," Kreisberg added. "She's the female president of the United States," Berlanti then disclosed.

RELATED: DC Isn't Stunt Casting "Supergirl," It's Honoring its Hollywood Legacy

In the first season of "Supergirl," Helen Slater -- the star of the 1984 "Supergirl" feature film -- played Eliza Danvers in multiple episodes. Dean Cain, who played Superman in 1990s TV series "Lois & Clark: The New Adventures of Superman," appeared as Dr. Jeremiah Danvers; and Laura Vandervoort, the Supergirl of "Smallville," played Indigo.

Carter starred as Wonder Woman/Diana Prince for three seasons between 1975 and 1979, a role that stands as one of the most iconic live-action performances of a comic book superhero.

The second season of "Supergirl" is scheduled to premiere Oct. 10 on The CW, switching networks after a first season on CBS.