Skip to main content

Drinkos com Blackout Times Plugin

·1 min

Drinkos.com Blackout Times Plugin

Project Wrap-Up Summary
Project SummaryAn object-oriented WordPress plugin based on the WordPress Plugin Boilerplate. This plugin simply deactivates the Add to Cart buttons/functionality, and the ability to checkout when the current time does not fall between the given times.
URLdrinkos.com
Related Projects
Technologies usedPHP, Wordpress API, WooCommerce
What I learnedHad to go through a few iterations to fully deal with the complexity of PHP time variables. (ie. for situations when the opening time falls in the PM, and closing time falls in the early AM of the next day.) I also became quite comfortable with Boilerplate’s OO method for writing a plugin.
Inspirations
Especially proud ofSticking with the same basic design even as it has undergone quite a few iterations.