Infinite customization in infinite combinations.
Editing files is so passé. An increasing number of themes come equipped with a myriad of hooks — points within its code which can receive user customizations, known as actions — which can be customized without modifying any files directly.
OpenHook brings the world of hooks & actions to the mainstream, providing an easy to use admin interface in which you can customize your site without limit, whether you're using HTML or PHP!
- Quick access to all hooks present in Thesis 1.8.5
- Quick access to all hooks present in Headway
- Quick access to the header & footer hooks of WordPress
- All hooks can be customized with text, HTML, PHP, or shortcodes
- All hooks can be selectively disabled
- A variety of actions already present in Thesis 1.8.5 and WordPress can be selectively disabled
- Hook visualization allows you to see exactly where each hook is fired on the front-end of your site
- OpenBox, a PHP-friendly "box" for Thesis 2
- New shortcodes
- [email], for masking email addresses from some spam robots
- [global], which makes use of custom fields on a draft page in order to provide a library of reusable strings
- [php], an admin-only shortcode for including PHP code within posts
- Ability to disable all shortcodes
- Display of
phpinfo()in the admin panel
- Options management, including tools to upgrade from OpenHook 2 and to uninstall (delete) all OpenHook options
An example of one of the many hooks to which OpenHook provides access. This is one of WordPress'.
How the Headway theme page of OpenHook looks. There is a toggle on the General page to choose to view all pages at once.
A snapshot of the shortcodes page.
How OpenBox appears on Thesis' box management screen.
An example of OpenBox in action in Thesis' skin editor.
After you have downloaded the file and extracted the
thesis-openhook/ directory from the archive...
- Upload the entire
thesis-openhook/directory to the
- Activate the plugin through the Plugins menu in WordPress.
- Visit Settings -> OpenHook and customize to your heart's content!
Alternatively, you can use WordPress' automatic plugin installer. Go ahead, it's easier!
- [fix] Fixed broken class calls in options management functions
- [feature] Now supporting Headway theme hooks!
- [feature] Shortcodes manager introduced!
- [feature] Users can now choose whether all hook panels are displayed or just one at a time
- [shortcode] PHP - Arbitrary PHP code in your posts! (Admin users only.)
- [shortcode] Email - Encodes email addresses for use in posts to thrwart harvesters
- [shortcode] Global - Take advantage of custom fields on a draft post to create a library of strings which may be used in any post
- [improved] Various code optimizations
- [feature] OpenBox - a box added to Thesis 2's box management, allowing for arbitrary code in Thesis 2's skin editor
- [change] OpenHook is now programmed as a class to allow its code to be self-contained. More code refinements will be coming
- [change] Plugin is now named simply "OpenHook." Viva la simplicity!
- [fix] thesis_hook_after_post_box restored. Hat tip: Doug Foster
- [feature] Hook visualization (Based upon http://headwaythemes.com/headway-hooks-visualized/)
- [change] Improved handling of the options management functions (upgrade/delete options)
- [change] When action groups are disabled, the hook pages now include a nag stating as much
- [fix] Warnings about empty arrays when activating action groups
- Bumped to make the repository update
- [feature] Hooks with customizations are marked with asterisks in the dropdown select box
- [change] Add link to phpinfo() under Tools menu
- [change] Verbiage for unhooking updated
- [fix] Many undefined variable errors
- [fix] Slashes are now properly stripped when upgrading from 2.x.x
- [fix] Default Thesis 404 content can now be properly removed
- [fix] Rare issue where the general settings panel doesn't fully appear
- Total rewrite of the plugin
- [feature] phpinfo() panel
- [feature] per-hook disabling of custom actions
- [feature] option to process shortcodes on custom actions
- [feature] ability to choose which actions to process (WordPress' or Thesis' or both's)
- [feature] ability to remove all OpenHook options
- [removed] several deprecated options
- Remember the typos fixed in 2.3.1? There were others I should have caught then. I'm a terrible proofreader, but thanks, Dean (http://www.doublejoggingstrollershq.com/), for catching them!
- Fixed two stupid typos that killed everything that was right with the world. Well, they broke the plugin anyway. Thanks, Jim (http://doggybytes.ca/), for reporting so quickly!
- I finally bought an SVN client, so I'm finally updating OpenHook. Sorry for the delay!
- Thesis 1.7's four new hooks are now included.
- OpenHook's file editing panels have been removed -- Thesis has these by default now.
- Readme.txt updated.
- Reverted change introduced in 2.2.3 regarding stripping of slashes
- Fixed a syntax error, reported by multiple users.
- Fixed a bug which prevented the After Teasers Box hook from saving properly. Thanks, Michael Curving.
- Fixed an issue where the file editors would strip slashes unnecessarily. Thanks, Kristarella.
I upgraded from OpenHook 2.x.x; where did all of my customizations go?
OpenHook 3.0+ does not automatically import pre-existing customizations. You will need to visit the OpenHook settings page accessible at Settings -> OpenHook; once there, you can use the "Upgrade from OpenHook 2" button to import your pre-existing customizations to the new schema. You'll then need to activate the Thesis & WordPress action groups as needed from the same settings page.
I don't use one of the supported themes; can I still use this plugin?
Of course! However, what you are able to do with OpenHook will be limited. Still, you will have access to WordPress' few public-facing hooks, the new shortcodes, and the
Where can I get the supported themes?
What about the code in my theme's custom functions file?
If you have already modified your theme's installation via
custom_functions.php, or some other file, you are welcome to port those changes into OpenHook to manage all of your changes in one place.
Note that your blog will use both your theme's custom functions and OpenHook, so the two are complementary.
Likewise, your theme's custom functions file will be processed after OpenHook, so you can override OpenHook via the custom functions file, if you need to.
Why can't I edit my custom files with OpenHook?
Prior to version 2.3, OpenHook provided panels for editing Thesis' custom CSS & custom functions files. Thesis now provides those features by default, and so there's no reason for OpenHook to provide the same thing.
Why can only certain users on my site access OpenHook?
Do to the powerful nature of OpenHook, access is restricted only to the highest level of users (i.e., those with the authority to edit files from within WordPress).
What are the security risks involved in using OpenHook?
OpenHook is a powerful tool for customizing your site; however, with great power comes, ahem, great responsibility. You are able to use any (ANY!) PHP code within your OpenHook-managed customizations; any other administrators on your site with access to OpenHook can do the same. The freedom allowed means that database credentials could be displayed, your database could be deleted, or your entire site could be defaced. These risks exist with the built-in theme and plugin file editor present in WordPress as well as with directly having access to your theme's custom functions file. Therefore, while OpenHook certainly can be dangerous, if you have only trusted administrators on your site, you have nothing to worry about.