I’ve written extensively on how and why to create a custom utility plugin for your ClassicPress website. For those who like to dig around under the hood and know more about how things work, that article is a great resource. For those who just want the code, the article is a bit cumbersome. The good news is that I’ve created a boilerplate utility plugin that you can download and start using immediately without getting through that long article! And, I’ve created 4 different versions, so, you can pick your preferred code style and hit the ground running.
Utility Plugin Downloads
- Plugin A: prefixed, procedural PHP
- Plugin B: namespaced, procedural PHP
- Plugin C: object-oriented PHP
- Plugin D: object-oriented, namespaced PHP
Which Utility Plugin to Choose?
Each plugin linked above has been written to avoid collisions with other plugins. Choosing one version over another version is simply down to your personal preference. I’ve written the different versions to ensure that you can get started quickly without having to seek out even more tutorials just to figure out what’s what. This means you can download your preferred code style and go! In case you were wondering: Code Potent prefers the object-oriented and namespaced methoed as used in “Utility Plugin D”.
As mentioned at the top of this article, I’ve written extensively on how and why to create a utility plugin for your ClassicPress websites. That article is a fantastic resource that will probably answer all your questions and more. If you still have questions after reading that article, please drop them in the comments section below!
What do you think?
Are you using utility plugins on your website projects? If not, why not? If you are, which code style do you prefer for your utility plugins? I’d love to hear your thoughts – let me know in the comments!