WASHINGTON — Joe Biden said he’d turn down a planned New York City fundraiser Thursday if the co-host turns out to be a fossil fuel executive.

“If that turns out to be true, then I will not in any way accept his help,” Biden said Wednesday when called out at a CNN town hall on climate change.

Biden is scheduled to rake in dollars at two Wall Street fundraisers Thursday — including one co-hosted by Andrew Goldman, a co-founder of Western LNG, a natural gas production and transportation company out of Houston, Texas, CNBC first reported.

The former vice president had pledged to not take campaign cash from the fossil fuel industry and Biden caught heat at CNN’s Climate Town Hall on Wednesday night on whether he’s violating the pledge by hitting up a NYC fundraiser the next day.

“If you are going to a fundraiser that is given in part by this guy who has a company that is pulling up natural gas, are you the right guy to go after (fossil fuel executives)?” CNN’s Anderson Cooper said, in restating an audience member’s question.

“I didn’t realize he does that. I was told — if you look at the SEC filings — he’s not listed as one of those executives,” Biden said.

“I’ve kept that pledge. Period.”

Biden’s campaign denied that Goldman is a fossil fuel executive and insisted he had nothing to do with running the company that develops liquefied natural gas export facilities.

“What @andersoncoooper just said about VP Biden’s fundraiser is factually incorrect. Andrew Goldman isn’t a fossil fuel executive. He’s not involved in the day to day operation. He’s not on the board of the company, nor the board of the portfolio company,” tweeted Biden adviser Symone Sanders.

Cooper later clarified on air that Goldman doesn’t have day-to-day responsibility at the company.

Biden said he was assured by his staff that Goldman “did not have any responsibility relating to the company. He was not on the board. He was not involved at all in the operation of the company at all.”

Biden said he’d see if reports that Goldman is a fossil fuel executive are “accurate” and will decline his cash if they are.