I’m using the transition_post_status
hook to perform some operations after publishing a post. In some conditions I would like to show an error message in a red box under “Edit Post” and above “Post published”:
How can I do that?
I’m using the transition_post_status
hook to perform some operations after publishing a post. In some conditions I would like to show an error message in a red box under “Edit Post” and above “Post published”:
How can I do that?
Comments are closed.
I wouldn’t use that hook. Here’s why
Try something like this using admin_notices.
Untested.
Check
http://codex.wordpress.org/Function_Reference/add_settings_error