๐Ÿงฐ WP Bones 2.0.8 โ€” console commands can reach your plugin

WP Bones 2.0.8 is out ๐Ÿฆด and it started as a community pull request ๐Ÿ™Œ

๐Ÿงฐ $this->plugin in your commands. Custom php bones commands that call $this->loadWordPress() now get your plugin instance: its config, its services, everything it registers. Before, the loader looked in the framework's own folder and your plugin never booted.

The Using WordPress in a command section of the WP Bones docs

๐Ÿฆด One instance, never two. With the plugin active, WordPress has already booted it, so the command now reuses that exact instance. The first version of the fix built a second one, and every hook ran twice: caught on a real WordPress before it was released.

๐Ÿ“„ Licences, sorted. The framework stays LGPL, with the GPL text it builds on now beside it. The 14 boilerplates are MIT: copy them into any plugin, commercial ones included.

๐Ÿ‘‰ Docs, boilerplates and live Playground demos:

Writing your own bones commands? Tell me what you'd automate first ๐Ÿ‘€

4 views

Add a comment

Replies

Be the first to comment