Some people wondered if it was a joke or real.
Deadline reported last year that the former Beatle had joined the cast of the film, which is set to be released on May 26.
Sir Paul McCartney won't be the first rock star to make an appearance in the film series. Keith Richards played Captain Teague, the father of Johnny Depp's character, Jack Sparrow, in 2011's On Stranger Tides.
No one seems quite sure what role McCartney will be playing in the latest installment of popular pirate series.