2012-03-14 #wordpress

Show Urgent Messages In WordPress Dashboard

If you use Wordpress dashboard then I'm sure you would of noticed the error messages that are displayed at the top. These will normally be messages from Wordpress to let you know a new version has come out and it's time to upgrade you current version.

These messages can be really be useful to Wordpress developers as you can let your users know about changes you are currently making. Using the below snippet you can add a Message to the dashboard, these can either be error messages or just a notice messages. Add the following to the functions.php file to add the error messages or notice messages.

function showMessage($message, $errormsg = false)
	if ($errormsg) {
		echo '<div id="message" class="error">';
	else {
		echo '<div id="message" class="updated fade">';
	echo "<p><strong>$message</strong></p></div>";
function showAdminMessages()
    showMessage("Welcome to the new Wordpress theme.", true);
add_action('admin_notices', 'showAdminMessages');


Reliable uptime monitoring and instant alerts for any website downtime.

  • Uptime Monitoring
  • Performance Monitoring
  • SSL Certificate Alerts
  • Domain Monitoring
  • DNS Checker
  • XML Sitemap Monitoring