| |

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

  • |

    Congrats Yankees!

    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! Congrats to the Yankees, who with Boston’s loss clinched their 9th consecutive AL East division title! World Series here we…

  • Programming in C

    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!This semester I am taking a class where it was recently decided the primary language will be C. While I did…

  • | | |

    How I Built the “WordPress: Year in Review” Website

    Earlier this month I launched WordPress: Year in Review, a content project where I’m wrapping up everything that happened with WordPress and in the community this year through an eBook, podcast, and video series. It’s an immense undertaking, so I decided to seek community support through sponsors and crowdfunding. We’re 3 weeks into September and I’m nearly 2/3 of the way to my crowdfunding goal which is exciting! I thought I’d take some time here and explain how I built the site.

  • New Course: WooCommerce Quick Start for Beginners

    I know it seems early, but the holidays are right around the corner, and with that, the busiest retail season of the year (at least here in the USA). For many, setting up an online shop can be a daunting task. With all the considerations that need to be made (types of products, taxes, shipping,…

  • |

    Setting All Videos To Show Controls In LearnDash

    One of the biggest pieces of feedback I’ve gotten on my course videos in recent weeks was that the controls on my videos were hidden. To be honest, I didn’t realize students couldn’t scrub through videos, or rewind – I assumed everything was working! After looking through the LearnDash settings and not finding a global…