Have you ever written plugin code in WordPress that was dependent on another plugin to run? If your code tries to execute before the plugin you require has loaded, obviously, it won’t work. There’s a very simple way to make sure that your plugin doesn’t run until it’s ready.
As a developer, you’ve no doubt been asked “can you do [insert user request here]” more times than you can count. The answer is pretty much always “yes.” The tougher question these days is “how” … there are hundreds of ways to get things done these days. In this post, I’d like to share some of the things that shape my decisions about the “how.”
With over 50K packages in the WordPress.org plugin repository – all open source – the code within these plugins is all over the place. Into this picture enter the WordPress Plugin Boilerplate. In their own words, the Boilerplate is “a standardized, organized, object-oriented foundation for building high-quality WordPress Plugins.”