The weapon codes that circulated for Free Realms were:
Enter them in the game's Redeem-a-Code field.
The important caveat is that all of these are expired. Promotional codes of this kind were single-use and campaign-bound, and Free Realms itself closed down years ago, so there is no longer a redemption system to enter them into. They survive as a historical record of how the game was marketed rather than as working cheats.
If you are looking for a current game with a similar free-to-play structure, the code-and-redeem pattern is still common — just check that the title is live before hunting for codes.