Noted chef and cookbook author J. Kenji López-Alt took to the Internet on Friday to apologize for a tweet in which he said customers wearing MAGA hats would be no more welcome at his San Mateo restaurant than those in white Ku Klux Klan hoods.

He said his Wursthall continues to welcome all customers, including those with differing political opinions.

“I want to start by apologizing to my staff and partners at Wursthall,” López-Alt wrote on Medium.com. “Making a public statement without taking my team’s thoughts into consideration was disrespectful and reckless.”

He said his tweet, now deleted, about Make America Great Again hats “was intended to reject anger, hate and violence” — but came across to some people as a hateful message itself.

“It was meant to be directed at those who would try to bring messages of hate, violence, and anger into my place of business, no matter what form it comes in. It was aimed at these three elements rather than at a physical object, but I understand that many interpreted my words in a different context, and construed a message of hate directed at them. This was not my intent in any way, and I am sorry for my recklessness.”

He said he was reacting to what the red MAGA hat, a symbol of Donald Trump’s presidency, has come to mean for many in America.

“I am very proud to come from a diverse family. My mother is an immigrant from Japan and my father is from a steel town in Western Pennsylvania. My family spans across the political spectrum. Yet we still manage to have a wonderful time at our biannual family reunion because we have three things in common: family, a love for our country, and most importantly, respect for each other and our communities.

“Yet this is a far cry from the stories we’re hearing around the country these days. Like many people, I’m scared and confused by the anger, hatred, and violence that I’m seeing in our country right now. Scared for my family and friends, for my community, and for the most vulnerable people among us.”

López-Alt wrapped up his statement by reiterating Wursthall’s policy of serving all customers who walk in the door at 310 Baldwin Ave.

“Wursthall will continue, as it always has, to serve all customer regardless of race, color, religion, sex, national origin, sexual preference, gender orientation, disability, or political opinion — so long as they leave hate, anger, and violence outside of the doors of our restaurant.”

López-Alt rose to fame as the science wizard behind the Serious Eats website and won a coveted James Beard Award for his magnum opus, “The Food Lab: Better Home Cooking Through Science.”