It’s either a warning to Clinton Foundation donors that Hillary may not stay bought, or a sign that the king of Morocco has a fat favor coming if she wins the White House.

As Huma Abedin wrote in an e-mail: “She created this mess and she knows it.”

The “she” is Hillary Clinton, who’d promised to keynote an event in Morocco in exchange for a $12 million donation to the foundation from King Mohammed VI — but then realized it would look bad.

The conference would be in May 2015, a month after Clinton officially announced for president — but the State Department she once headed had accused Morocco of “arbitrary arrests and corruption.”

In hacked November 2014 e-mails revealed by WikiLeaks, Abedin was warning Clinton campaign manager Robby Mook (who plainly wanted to cancel) that Hillary just had to follow through: “Her presence was a condition for the Moroccans to proceed . . . so there is no going back on this.”

The argument went into January, when Abedin wrote: “This was HRC’s idea . . . The king has personally committed $12 milllion.” And: “It will break a lot of china to back out now . . . She created this mess and she knows it.”

Saying the entire Wiki dump is part of a Russian effort to influence the US election, the Clinton camp refuses to confirm or deny these e-mails. And what’s been released doesn’t reveal exactly how Hillary resolved her “mess.”

But we know she didn’t show for the conference — the Moroccans wound up only with Bill (and Chelsea). They didn’t get the former secretary of state and presidential candidate, just the ex-president who’s notorious for speaking anywhere that will fork up enough cash.

Yet we also know the foundation kept the king’s donation.

So how exactly did Hillary Clinton keep from “breaking the china” — a marker to be redeemed later, perhaps?