WordPress.org

Plugin Directory

OpenHook

Add customizations to any hook in WordPress and any hook-enabled theme or plugin from within your admin panel! Wanna play hooky?

How does OpenBox work in Thesis 2.1.x?

First, ensure you have enabled OpenBox in the Thesis 2.1.x "boxes" screen (OpenBox should be checkmarked and you'll need to press the save button).

Second, visit the Thesis skin editor. Add instances of OpenBox from the boxes dropdown menu, and drag them into your skin template wherever you would like them to be. I recommend opening each instance of OpenBox (via the gear icon) and giving it a unique name so that they are not all "OpenBox."

Finally, once you have saved your template, return to the regular admin panel and visit Thesis' skin content page. On this page, you'll be shown a list of all of the custom boxes, including OpenBoxes, you've added to your template, at which point you can edit them to your liking.

Yes, this is convoluted, and for that I apologize; fortunately, it isn't my fault.

I upgraded from OpenHook 2.x.x; where did all of my customizations go?

OpenHook 3 and newer 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 phpinfo() panel.

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 functions.php, custom_functions.php, or some other similar 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 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 edit_themes permission).

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. Therefore, while OpenHook certainly can be dangerous, if you have only trusted administrators on your site, you have nothing to worry about.

Why is K2 included?

K2 is a pretty old WordPress theme -- an abandoned one, for all I can tell. However, it was the first theme that ever had a "hooks" plugin made for it -- K2 Hook Up, which the first version of OpenHook was based upon. The K2 theme is included to honor its place in WordPress history. OpenHook now allows access to all of its hooks, including one which K2 Hook Up didn't! I would also love to see a theme developer pick up K2 and update it for today's users. It's a great theme that shouldn't fade away completely.

Requires: 4.1 or higher
Compatible up to: 4.1.1
Last Updated: 2015-3-13
Active Installs: 20,000+

Ratings

4.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,2,2
100,2,2
100,2,2
100,5,5 100,1,1
100,3,3 0,1,0 100,5,5
100,4,4
67,12,8
100,3,3
100,5,5
100,1,1
100,1,1
100,1,1
0,1,0
100,3,3 40,5,2 100,1,1 100,1,1 30,10,3 100,1,1 25,4,1
0,1,0 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1
100,2,2
0,1,0
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1