| |

Random Code Generator 1.0

Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don't hold it against me. One of the perils of having a 20+ year old website!

A couple of weeks ago, when I officially launched the redesign, I mentioned the forthcoming release of a plugin I wrote for the redesign. Random Code Generator is that plugin. I needed a plugin that generated a random promotional code and stored it in a database. I’m currently using it on Manifest Development to manage various promotions and ‘prizes’ I have going on, to make sure people can get a code, but cannot use it twice. Here is the official description:

A simple plugin that genrates a random string of characters and stores it in a database. By default the length is 10 characters (A-Z, a-z, 0-9, @!@#$%^&*()) and the strings are unique.

Right now it’s a bare bones plugin, with only major functionality done and the requirement to use a template tag. In the next build I plan on adding a delete code function and a hook to add the random code into any post or page.

If you want to check out the plugin, you can do it here or on the official WordPress page.

Similar Posts

  • | | |

    Version 4.0

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!The New TehJoey is officially launched. You may have been noticing over the last few days, when layouts were switching back…

  • Google

    Note: This article was published while I was in my early 20s. I was much younger and dumber. Please don’t hold it against me. One of the perils of having a 20+ year old website!Microsoft challeges Google. They are revamping the MSN Search, amoungst other things. This sounds a little farmiliar. O wait- Yahoo did…

  • Start 2018 off Right with the WordPress Freelance Coaching Program

    You might know my freelance origin story. It’s one I tell a lot, at WordCamps and on podcasts. I sort of fell into it when I was 15 years old. My church asked if I could make them a website. After I declined, they offered to pay me. Pay me to learn? How could I pass…

  • Pivoting WP in One Month

    Do you know the story of Pixar? It’s a really interesting one that I strongly recommend you read all about in Creativity Inc. Here’s the gist: Pixar started off as a piece of hardware inside LucasFilms, and the team was tasked with pushing the technological envelope for live-action movies. When Lucas had to sell off…

  • Alex King’s Advice

    It’s been a few days since the news broke of Alex King’s far-too-soon passing. There has been an incredible outpouring from a community he affected in such a deep way. I decided to wait a few days to write my thoughts for a few reasons, the main one being I’m not really sure what I…