Month: December 2012
-
SLASH Architecture – My approach to building WordPress plugins
I’ve fallen into a routine when building WordPress plugins; a few general rules are: Avoid creating new PHP globals. Avoid executing PHP code in the global scope. Generous use of Actions and Filters. I’ve decided to name the pattern I use Slash, which stands for: Singletons Loaders Actions Screens Handlers Singletons I didn’t love singletons in…