It was the wedding of her schemes.

A hairstylist to the stars claims his heiress “wife” faked their $1 million, celeb-studded desert nuptials as a PR “stunt” to bask in the glow of attention.

William Jordan Blackmore, whose Three Squares Studios in Chelsea catered to clients like Marc Jacobs, Elizabeth Olsen and Selena Gomez, thought he had tied the knot with longtime love Andi Potamkin in 2015 during an over-the-top wedding at the 600-acre Amangiri resort in Utah, where guests were flown in by private jet and the spectacular scene was covered by magazines.

So he was shocked to find three years later that Andi, whose family founded the Potamkin Auto Group, had tricked him and the officiant in an attempt to avoid a legal ball and chain, Blackmore charges in a Brooklyn federal court lawsuit.

“The truth was that Andi never wanted to marry Jordan; she just wanted a lavish wedding experience, a public-relations stunt and the attention that came with it,” the lawsuit claims.

Andi Potamkin said the lawsuit “includes tons of untrue and irrelevant information about my family, included for no purpose other than to attempt to publicly embarrass us.”

The wedding’s save-the-date cards consisted of geodes — rocks with colorful crystals inside — and a hammer, along with directions for cracking open the stones.

Guests like Olsen, designer Recho Omondi and “House of Cards” actress Alexis Nichole Smith were asked to dress in “desert” colors such as “parchment” and “dune ecru,” with “frequent outfit changes encouraged.”

The four-day affair included horseback riding, zip lining, hiking, “late-night poker and debauchery,” karaoke, movies “under the stars,” a “BBQ & s’more buffet” and “lunch by the pool.”

There were yoga and watercolor classes, guided walks and custom-made paper dolls in the image of each guest to accompany the keys to their suites, which typically run $2,600 to $4,350 a night.

But despite dancing down the aisle and the exchange of vows, the entire event was “a sham,” Blackmore, 35, charges.

Potamkin, 30, “hatched the scheme” with her dad, Alan Potamkin, 70, who as co-owner of his family’s namesake car-dealership company, is believed to be worth $150 million.

Allegedly worried about his daughter’s financial future as Blackmore dragged his feet on signing a prenup, the thrice-married Alan — who once saw a prenuptial agreement of his own invalidated and had to give up $30 million in assets — “actively participated in and assisted the fraud,” the groom claims in court papers.

The Potamkins went through with the scheme even though Blackmore eventually signed the “punitive” prenup days before the wedding, he charges.

The premarital romance appeared to be real. The couple met at a Miami nightclub in 2006, and four years later, a smitten Blackmore separately asked each of Andi’s divorced parents for her hand in marriage before proposing with a $90,000 rock.

The two even got matching tattoos reading, “I am my beloved’s and my beloved is mine.”

Alan Potamkin footed the bill for what fashion outlet Coveteur dubbed “the dreamiest desert wedding you’ve ever seen.”

The doting dad wanted “to give his daughter the fantasy experience and attention she so desired, with no lasting consequences under law,” Blackmore claims.

The couple asked their yoga instructor friend, Dana Rizer, to officiate. But Andi later whipped up a tale, telling Rizer she didn’t have to actually become ordained because the soon-to-be newlyweds were going to be “officially” married in New York ahead of the Utah affair, Blackmore alleges.

The couple didn’t obtain a marriage license in New York or Utah, a source said. Utah law specifies that couples need a license and an officiant, such as an ordained minister or public official, to solmenize the ceremony.

Blackmore says he allowed his fiancée to handle all the details.

The wedding was followed by a $25,000 one-month honeymoon in California. Andi Potamkin Blackmore even referred to Blackmore as her husband, while Alan Potamkin called Blackmore his “son,” according to the legal filing.

But the relationship unraveled, with Andi allegedly having an affair and Alan failing to come through with a promised $300,000 investment in Blackmore’s business, Blackmore charges in the lawsuit.

Andi came home to their Brooklyn love nest in December, “placed her engagement and wedding rings on the coffee table and told Blackmore, ‘We have to break up,’ ” he claims.

Taking a page from Gwyneth Paltrow and Chris Martin, Andi told pals she and Blackmore “consciously uncoupled” — but he quickly learned they never legally “coupled” when a draft separation agreement provided by Andi Potamkin referred to their “symbolic” Utah ceremony, court papers say.

The weird language prompted Blackmore to call Rizer, who revealed Andi’s request that she not get ordained, according to court papers. Rizer did not return a message seeking comment.

Blackmore “was shaken to his core by the discovery of what Andi and Alan Potamkin surreptitiously did to him,” said Blackmore’s lawyer, Matthew Coogan.

Blackmore wants $2 million in damages, also claiming that the Potamkins hurt his business reputation.