My question is easy but I can't find any answers via Google or Stackexchange.

I've created a custom post type and everything's going great so far. I'd like to make it so that when the user is creating a new item, they see a yellow box at the top alerting them of something. How do I do that?

Thanks in advance!

1 Answer 1


I think you'll need to combine the save_post hook (codex link here) and the admin_notices hook (codex link here). I know link only answers are normally not acceptable, but I think you should start with reading some codex stuff :-). Hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.