Hybrid Hook is one of the reasons I created the Hybrid theme. It’s part of my vision of making the ultimate theme framework, something with more flexibility than any other theme. It’s about making life easier for you.
This plugin adds an additional theme settings paged named Hybrid Hook. You can use it to input custom HTML, PHP, JavaScript, and even shortcodes. You don’t have to dig into those theme files just to add a little extra content to your blog. You can use this plugin to add content anywhere.
How to install the plugin
- Download the plugin from the plugins repository.
- Uzip the
hybrid-hook.zipfolder. - Upload the
hybrid-hookfolder to your/wp-content/pluginsdirectory. - In your WordPress admin, head over to the Plugins section.
- Activate Hybrid Hook.
How to use the plugin
Once you’ve activated the plugin, a new menu item labeled Hybrid Hook will be under your Appearance/Themes menu in your WordPress admin. This item will only be shown to users with the edit_themes capability (the Administrator role in default WordPress installations).
On the Hybrid Hook Settings page, you’ll be presented with several sections, which have been broken up into major groups. Within each section, there’ll be several options. Each option represents an action hook in the Hybrid theme. For each option, you’ll have three settings:
- Textarea: This is where you input your custom code. You can add HTML, PHP, JavaScript, and shortcodes here.
- Priority: This is when your code will be fired on the action hook. It’s useful for adding things before/after the default actions of fired by Hybrid. Typically, it’s best to just leave this at the default of
10. - Execute PHP?: If you added PHP code to your textarea, you need to select this option for the code to be executed.