Michael Cohen’s lawyer Lanny Davis on Wednesday accused President Trump of committing a felony for his alleged role in a porn-star hush-money scandal.

Trump has claimed he didn’t know at the time about payments made on his behalf to silence two women ahead of the 2016 election — despite his former fixer Cohen admitting in court Tuesday that Trump instructed him to make the payments “for the purpose of influencing the election.”

“Later on I knew — later on,” Trump told “Fox & Friends,” according to clips of a larger interview set to air Thursday.

“They didn’t come out of the campaign, they came from me. … In fact my first question, when I heard about it was did they come out of the campaign? Because that could be a little dicey and they didn’t come out of the campaign, and that’s big. It’s not even a campaign violation,” he continued.

Except a federal judge, prosecutors, Cohen’s defense and Cohen all agreed in court Tuesday that Cohen did, in fact, violate campaign finance laws when he pleaded guilty to one count each of causing an unlawful corporate contribution and making an excessive campaign contribution — both of which are felonies.

If Trump knew about the payments at any time, he may have committed a felony by not disclosing his knowledge or returning the dough, according to Davis.

“It doesn’t matter whether it’s a campaign contribution or a corporate or a personal contribution — the campaign limits apply,” Davis said on MSNBC Wednesday. “You committed a felony if you knew about it afterwards and didn’t take that money back.”