In December, I released the first version of the Hybrid Hook plugin. It was a pretty cool plugin, but it was lacking a lot of finesse. After months of user feedback and seeing how everyone was using the plugin, I decided to give this plugin a much-needed update.
The new version will make your life much simpler, especially if you’re an average end user. Developers, you can work with this too. Just imagine setting up a client’s site and simply plugging in additional code from an admin screen. It lets you do the work but gives your client easy access to change things up.
The biggest improvement of this version is that I’ve created a few functions that will allow me to easily plug in new action hooks in the future. It’s more efficient and cleaner than the previous version.
What does the Hybrid Hook plugin do?
It provides a user interface that allows the input of custom code. Your code is then added to an action hook provided by the theme. It’s an extension of the Hybrid theme, which must be installed for this plugin to work. You plug in your code; Hybrid executes it.
Most of the hooks within Hybrid are given a textarea where you can input:
- Shortcodes (new feature)
Version 0.2 adds a little extra to the normal setup. You can choose to execute PHP on a hook-by-hook basis as well as choose the priority you want your code to run on the hook.
New admin screen
I also gave the plugin a bit of a facelift. It should be much easier to figure out where your code will go on the site and stay organized.
What’s in store for the future?
Here’s a few things I have in mind for the future:
- Allow editing of the output of filter hooks and not just the ability to add content to action hooks.
- Add more action hooks to the settings screen.
- Create a sister plugin for WordPress itself that lets you tap into the WordPress hook system.
Download the plugin
If you’re upgrading from version 0.1, your settings will be lost. I assure you this won’t happen in future versions, but it was a necessary evil with this version. The best thing to do is just save your settings to a text file and transfer them over.
This version is now hosted on the WordPress plugin repository, so you can stay updated when new versions arrive.
Full instructions are in the
readme.html file, which is included with the plugin download.