• Hi all,

    I’m developing my first plugin – It uses add_action(‘add_meta_boxes’,..) to add some new stuff to the edit post.php screen. I have another action to accomplish a task using add_action(‘save_post’,…)

    Everything executes fine, but sometimes I want to display an error or a general user message to the user. I am not sure where, when, or how to do this.

    I’ve tried looking at admin_notices and the WP_Error class, but nothing is displaying. I know things are getting executed because my meta boxes show up fine and error_log() functions work from within the save_post action.

    Can anyone help me show a bit of extra information to the user after they’ve saved their post? I know plugins like sexybookmarks can easily add a red bar to do this, but I can’t get the code to display!

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to Display a Message Box in post.php After save_post Action is Executed?’ is closed to new replies.