Search Over 18,000 FREE Plugins from the Official WordPress Plugin Directory Repository

OpenHook

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!

Features

  • 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
Author Rick Beckman
Profile
Contributors BrazenlyGeek, KingdomGeek
Tags
  1. thesis-openhook screenshot 1

    An example of one of the many hooks to which OpenHook provides access. This is one of WordPress'.

  2. thesis-openhook screenshot 2

    How the Headway theme page of OpenHook looks. There is a toggle on the General page to choose to view all pages at once.

  3. thesis-openhook screenshot 3

    A snapshot of the shortcodes page.

  4. thesis-openhook screenshot 4

    How OpenBox appears on Thesis' box management screen.

  5. thesis-openhook screenshot 5

    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...

  1. Upload the entire thesis-openhook/ directory to the wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Visit Settings -> OpenHook and customize to your heart's content!

Alternatively, you can use WordPress' automatic plugin installer. Go ahead, it's easier!

4.0.1

  • [fix] Fixed broken class calls in options management functions

4.0

  • [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

3.4

  • [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!

3.3.1

  • [fix] thesis_hook_after_post_box restored. Hat tip: Doug Foster

3.3

  • [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

3.2.1

  • Bumped to make the repository update

3.2

  • [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

3.1

  • [fix] Rare issue where the general settings panel doesn't fully appear

3

  • 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

2.3.2

2.3.1

  • 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!

2.3

  • 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.

2.2.5

  • Reverted change introduced in 2.2.3 regarding stripping of slashes

2.2.4

  • Fixed a syntax error, reported by multiple users.

2.2.3

  • 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 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 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.

Share  
Download
Version 4.0.1

Requires WordPress version: 3.3.1 or higher

Compatible up to: 3.5.1

Last Updated 14 Dec 2012

Date Added: 08 Dec 2008

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

4.7 stars
47 ratings
214,960 downloads

Compatibility

Not Enough Data

Reports:
Works: 1
Broken: 0

Probably Works.
Considering downloads, would expect problems reported.