New Editor Window Hooks

Add a Message Above or Below the Post Editor

| 6 Comments

A couple of new hooks in WordPress 3.5 make it much simpler to hook in below both the post title box and the post editor. You can then use these functions to hook into these locations for whatever purpose you need.

In this quick example, I’m going to demonstrate how to use them to display simple messages, which can be very useful for displaying instructions on a client site, for example.

The result of using functions like this can be seen in the screenshot below:

New Editor Window Hooks

Categories: Code & Snippets | Permalink

What next?

Hire me

If you couldn't quite manage this yourself, find it too intimidating, or just don't have the time to do it, you can always hire Dave to do it. Please get in touch so that we can discuss your needs.

Leave a comment

If you have a question, update, or comment about the tutorial, please leave a comment. I try and respond to every comment, though it may take a few days, so please check back soon.

Let a WordPress Expert help you

Do you want to try this, but feel like you need a helping hand, in case something goes wrong? My service, The WP Butler, gives you access to WordPress expertise whenever you need it. Better yet, I'll keep your site backed up, updated and secure, so that you don't have to worry about it. It's all part of the service. Use coupon DIWW and save 15% on all plans.

Visit The WP Butler

Author:

Dave has been tinkering with WordPress for many years, and he now shares his WordPress knowledge here on Do It WIth WordPress to help others realise its impressive power. He can also be hired to help with your WordPress needs. Dave, who is British, is married to his best friend, Marti, with whom he has a beautiful daughter, Ellie. When he's not dabbling with WordPress, he's probably eating Triscuits or hummus, watching an indie film or British TV show, spending time with friends or family, or exploring the world.

6 Comments

  1. Dave I think this could be really useful for a subtitle. Could you give an example? Not sure how you would create the form element for the subtitle field and then output it in a theme.

    • That’s something else entirely. You’d need to use custom meta to save the information to the post and then output it to the theme using get_post_meta. This is simply for displaying messages (or performing other actions with the hook) above or below the editor in the dashboard only.

      • I suspected it might require a metabox but I was hoping to use this hook to place the metabox in this location.

        • Ahhh, well that you could certainly do. You might need to do some research to do it, but yes, you can use this hook to place the metabox in the desired location and then call upon that information in the theme.

  2. Very interesting. Is there a way to make it closer to the title box

Leave a Reply