The LEGO Harry Potter games are huge adventures, with Years 1-4 and Years 5-7 covering the entire Harry Potter saga, from Philosopher's Stone through to the end of Deathly Hallows.
Naturally, there are an abundance of LEGO Harry Potter cheats to unlock new spells, Golden Bricks, abilities that see you hoover up more studs and much more. As well as the original PS3, Xbox 360 and Wii releases, these codes will also work on the more recent PS4, Switch and Xbox One LEGO Harry Potter The Collection.
To enter codes in Years 1-4, go into Wiseacres Wizarding Supplies in the Diagon Alley hub (to get there, from the first proper mission onwards pause the game then select 'return to Leaky Cauldron'). Go outside and head down the street to Wiseacres Wizarding Supplies, then go inside and interact with the board upstairs.