Two pink flowers, above green grass

Refactoring A WordPress Plugin To Use A Container

WordPress plugins used to use one big class, which was a singleton, and exposed instances of all of the plugin’s classes. This worked, but singletons have a lot of downsides. It was the best solution in PHP 5.2, which we used to have to support. In the previous section, I wrote about singletons and their […]

This Content Is Members Only

  • Access To All eBooks
  • Request New Code Samples
  • Early Access To Content