Ever wanted to create one of those admin messages you see at the top of of some WordPress dashboard pages?

admin-notices

Well its pretty simple. Just drop this into your functions.php file, or a custom plugin, and edit to fit your needs:

If you want to change the color of the border, you have 3 options: Yellow, Red, and Green

Yellow – use the ‘notice-warning’ class. (as shown above)
Red – use the ‘error’ class.
Green – use the ‘updated’ class.