An attempt by a Perth primary school principal to ban cupcakes on birthdays has backfired after the state government stepped in to put the policy on hold in the wake of widespread outrage.

The move by Arbor Grove Primary School principal Glen Purdy was chided by both sides of politics, with WA Education Minister Sue Ellery voicing her support of birthday treats and Opposition Leader Liza Harvey labelling the move "political correctness on steroids".

A principal decided a cupcake ban was the best way forward. Credit:Simone de Peak

The Ellenbrook school's note to parents raised eyebrows after telling them the school executive had been mindful of the increasing number of students with food allergies and intolerances, the cultural diversity of the school, and the beliefs and traditions of those cultures.

The note asked parents to no longer send students to school with cupcakes, lolly bags or other unhealthy options to share with their classmates when celebrating their birthdays.