In the previous post, we created a Registry that is going to be used to store all of the various classes responsible for giving our widget its functionality.
To do this, there’s going to be a variety of other classes introduced, but before going there, we need to add the Registry to the plugin’s bootstrap (let alone create a bootstrap for the plugin).
Specifically, here’s where we left off:
As mentioned earlier in the post, we need to add this to the bootstrap of the plugin. To do this, though, we need to define our own filter so that we can easily pass the registry around the rest of the plugin (when the time comes to do that).
So in this post, we’re going to focus on doing exactly that.
Continue reading