How to add an admin notice upon post save/update in WordPress?

Posted by Prem Tiwari | Updated on

Want to add an admin notice upon post save/update in WordPress? The reason this doesn’t work is because there is a redirection happening after the save_post action. One way you can acheive want you want is by implementing a quick work around using query vars.

Use following code in your theme’s functions.php file OR in site specific plugin.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers