It's in the pause menu: go to Extras, then Cheat Codes.
That's the whole route. The caveat is that many of the codes need to be unlocked first by completing stages or finding collectibles — you can't necessarily enter everything from the start. Once unlocked, though, entering them from that screen applies them immediately.
Worth noting that using cheats will typically flag your save and disable achievements, so decide whether you want the help or the trophies before you commit.