Shazam! Fury of the Gods ends with Billy Batson the only member of the "Shazamily" left standing against the Daughters of Atlas. In order to save the Earth and stop Kalypso, the hero makes the ultimate sacrifice, giving his life to save the day...and his family.
Later buried by his loved ones, Shazam is almost immediately resurrected courtesy of a timely intervention from Wonder Woman. As one of the world's last Gods, she's able to restore power to The Wizard's staff so Billy can live to fight another day.
During a recent interview with Fandom Entertainment, Jack Dylan Grazer - who plays Freddy Freeman in the sequel - suggested that Diana Prince showing up to resurrect Shazam wasn't always the plan.
"We're like 'Oh my God, she's here. Wonder Woman is here.' She's in her costume already and she's like, 'Do you mind if I step into the scene?' because originally in the end, Billy just dies," the actor explained. "The movie was over. And [then], she comes in, she walks on set and she's like 'here,' and she does her magic."
That would have been a rather downbeat ending for the Shazam! follow-up, but if Warner Bros. had been banking on a third movie at the time, then we may well have seen the hero brought back to life in that to fight Mister Mind.
Unfortunately, we're unlikely to know what Warner Bros. had planned for the DCEU prior to DC Studios' formation (heck, even they probably weren't sure).
Looking closely at the scene with Gal Gadot's Amazon warrior, it being the product of reshoots makes sense, especially as the green screen behind Wonder Woman stuck out like a sore thumb.
For what it's worth, though, Shazam! Fury of the Gods director David F. Sandberg is insistent that Gadot was on set with the rest of the cast.