WordPress-Plugin-Boilerplate
WordPress-Plugin-Boilerplate copied to clipboard
Why not using singleton pattern?
I just picked up the code to use it for my plugin. I have this urge to turn some of the core classes to singletons. Before doing so, was wondering why it's not like that already.
Any specific reason?
You totally could @essentique . It can cause some hurdles when building out tests but it has been a while since I've been in the weeds to get into the specifics. Give it a try and go from there.