As for how tall the Tree of Wisdom needs to be to unlock the cheat codes in Plants vs. Zombies, the original answer simply wasn't sure.
The Tree of Wisdom does offer tips and unlocks as it grows, so if you're after a specific code, checking a current walkthrough will give you the exact height and requirements.