How to Add Notification Message in All WordPress Admin Pages

By Prem Tiwari in Code Snippets, WordPress Snippets. Updated on


Are you a WordPress plugin OR Themes developer and you want to add a global notification message for all admin pages, then keep your close attention in this tutorial as I am going to share how to add notification message in all WordPress admin pages.

This is a very easy and simple WordPress action function to add admin notification. We used the admin_notices action to global notification message for all WordPress Admin pages.

How to Add Notification Message in All WordPress Admin Pages

Add the below code in your plugin files if you are displaying the notification via your plugin, OR if you want to display via your theme, then add below code inside your functions.php file from your theme.

After adding the above code the notification message will look like below screenshot.

How to Add Notification Message in All WordPress Admin Pages

Over to You

Hope this tutorial help you, then please do like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

Sharing is caring!


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

You might also like:

Tags: , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.