An order for famous Canadian psychologist and author Dr. Jordan Peterson to undergo "social media training" for controversial posts he has shared in the last few years was upheld by an Ontario court.

Peterson, a popular media personality and professor emeritus of the University of Toronto psychology department, was forced to comply with the order Wednesday after three Ontario Divisional Court judges dismissed his legal complaint against the College of Psychologists of Ontario.

The academic body had claimed earlier this year that several of Peterson’s social media posts could be viewed as professional misconduct and asked that he take a social media training course.

TWITTER, FACEBOOK, GOOGLE HAVE REPEATEDLY CENSORED CONSERVATIVES DESPITE LIBERAL DOUBTS

Peterson addressing audience

Canadian psychologist Jordan Peterson was recently ordered by a Canadian court to undergo "social media training" for his previous controversial social media posts. ((Photo by Chris Williamson/Getty Images))

Peterson has generated controversy in recent years with several posts calling out transgender ideology, politicians, and other topics. Last year, the psychologist was suspended from Twitter, now X, for rebuking transgender actor Elliot Page.

Peterson posted, "Remember when pride was a sin? And Ellen Page just had her breasts removed by a criminal physician." Peterson was let back onto the platform following Elon Musk’s takeover of the social media company.

That same year, Peterson also trashed Sports Illustrated for featuring a plus-sized model on its May cover, posting, "Sorry. Not beautiful. And no amount of authoritarian tolerance is going to change that."

For those posts and similar ones, the College of Psychologists ordered Peterson to undergo the training. It stated that if he refused, he could lose his psychology license in Ontario.

Peterson responded on social media in January, "To clarify: it's been decided: I either submit to social media communication retraining or face a disciplinary hearing and possible suspension of my clinical license and the right to represent myself as a psychologist."

Peterson then filed a judicial review of the College of Psychologists of Ontario’s order, arguing that the body does not have control over his political commentary on social media.

RFK JR TELLS JOE ROGAN HE HAS TO ‘BE CAREFUL’ THE CIA DOESN’T ASSASSINATE HIM

Dr. Jordan Peterson

Dr. Peterson has been ordered to take the social media training for his politically incorrect tweets or potentially lose his psychology license in Ontario, Canada. (Carlos Osorio/Toronto Star via Getty Images)

However, the Ontario court, which came to a unanimous decision among the three judges, dismissed Peterson’s complaint, stating that the academic body’s order falls under its responsibility to guard the profession of psychology in the public arena.

Peterson maintained that his posts were "off-duty opinions" and not made in his capacity as a psychologist. However, one of the judges, Justice Paul Schabas wrote, "Dr. Peterson sees himself functioning as a clinical psychologist 'in the broad public space' where he claims to be helping 'millions of people.’"

The judge added, "Peterson cannot have it both ways: he cannot speak as a member of a regulated profession without taking responsibility for the risk of harm that flows from him speaking in that trusted capacity."

In an interview with Canadian outlet CBC News, Peterson struck a defiant tone over having to take the social media training. He declared, ""I'll comply with their regulations, but I'm not going to do it in secret... And the reason I'm not going to do it in secret is because I don't believe I've done anything wrong."

In a post on X, formerly Twitter, from Wednesday, Peterson summed up the situation for his 4.6 million followers, stating, "So the Ontario Court of Appral ruled that @CPOntario can pursue their prosecution. If you think that you have a right to free speech in Canada. You're delusional."

He added, "I will make every aspect of this public. And we will see what happens when utter transparency is the rule. Bring it on."

Peterson did not immediately respond to Fox News Digital's request for comment.

CLICK HERE TO GET THE FOX NEWS APP

For more Culture, Media, Education, Opinion, and channel coverage, visit foxnews.com/media.