• Home
  • Musings
  • Coding
  • Design
  • WordPress
  • Projects

Chris Howard Blog

Thoughts that escape my brain

WordPress developer tip: Adding messages to content list and editor screens

December 6, 2013 by chrishoward Leave a Comment

Recently I learnt how to display messages on content list and content editor pages in admin, which has enabled me to put key info I kept getting asked bang in front of users (mainly what the screen is for and how to get more help).

content-editor-help-messages

content-list-help-messages

Use one of these actions:

Content list: views_edit-{post type name}

Content editor: edit_form_after_title

The latter passes $post to your function (i.e. use myfunction($post)) , so grab that and use $post->post_type to check you’re on the right page before showing your message.

Filed Under: Coding, Tips, WordPress Tagged With: coding, content, documentation, help, tips, wordpress

© Copyright 2013 Chris Howard · All Rights Reserved