The BBC has said it was wrong for writing about Jacinda Ardern's resignation as prime minister of New Zealand with the headline: "Can women have it all?"

The since-deleted headline was posted yesterday on Twitter with a link to an article by BBC World, the UK broadcaster's global newsroom.

Angry commentators contrasted it with BBC headline writers' ungendered coverage of male politicians including Boris Johnson, the thrice-married father of seven who quit as UK prime minister last year.

One labelled it "staggering sexism" while others accused the BBC of "misogyny".

BBC sports presenter Gabby Logan described it as "dreadful" in a social media post.

The headline was later changed to say: "Departure reveals unique pressures on PM."

The story mentioned Ms Ardern's life as a working mother of a small child.

"We quickly recognised the original headline wasn't suitable for the story and changed it accordingly. We also deleted the associated tweet," a BBC spokesperson told AFP.

Ms Ardern, who steered New Zealand through natural disasters, the Covid-19 pandemic, and its worst-ever terror attack, said she no longer had "enough in the tank".

While she has not shied away from discussing the strains of office, she has been quick to shoot down sexist lines of questioning.

In November, at a joint news conference with her Finnish counterpart Sanna Marin, they were asked by a male journalist if they were meeting because they were "similar in age and got a lot of common stuff there".

Referring to former US and New Zealand leaders, Ms Ardern queried "whether or not anyone ever asked Barack Obama and John Key if they met because they were of similar age?"

Ms Ardern is set to be replaced as leader of the Labour party and New Zealand's prime minister by Chris Hipkins.

Mr Hipkins is expected to be confirmed as the new leader by a meeting of Labour's 64 MPs, or Caucus, on Sunday.

First elected to parliament for the Labour Party in 2008, the 44-year-old Mr Hipkins became a household name fronting the government's response to the pandemic after being appointed minister for Covid-19 in November 2020.

He is currently minister for the Police, Education, Public Service and serves as leader of the House.