Hooked Editable Content

Creates editors on Edit Post and Edit Page screens for content to be hooked to actions and filters

Author:Jon Anwyl (profile at wordpress.org)
WordPress version required:4.7
WordPress version tested:5.7.2
Plugin version:1.1.3
Added to WordPress repository:27-06-2017
Last updated:07-03-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:2
Plugin URI:https://wordpress.org/plugins/hooked-editable...
Total downloads:940
Active installs:10+
plugin download
Click to start download

An easy way to add content to actions or filters in your theme – and allow users to edit the hooked content by page and post if you wish.

Example uses

  • Add a slider or image gallery to your site just below the main navigation menu and have the images varying on different pages. Or maybe have some pages without any images at all.
  • Add text in the site footer on some pages, but not on all pages. Or maybe different text on different pages.
  • Add an additional editor to all pages / posts that allows authors / editors to add in a banner notice to any given page / post if they wish.

You can also see some live explanatory examples.

How it works

  1. Work out where you want to add some content. If your theme already has a suitable action / filter, then great. (Themes like WooCommerce Storefront come with loads.) If not, you can add an action / filter yourself using a child theme.
  2. Create a “hooked editor” using the plugin, specifying the action / filter you want to hook the editor to, the type of editor, and which roles can add content.
  3. If you wish you can add “generic” content to that hook, which will appear on every page and post.
  4. An editor now also appears on every Edit page and Edit post screen for those users with the right role, so “specific” content can be added which will only appear on that page / post.
  5. Content saved against a post / page is now displayed on the front-end wherever the action / filter appears. If generic content has been saved, then any specific content replaces it on that page / post only.