Return to Snippet

Revision: 56068
at March 7, 2012 14:55 by shufflepath


Initial Code
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("Working on Theme's function.php, Do not touch it till further notice.", true);
}
add_action('admin_notices', 'showAdminMessages');

Initial URL

                                

Initial Description

                                

Initial Title
Show an urgent message in the WordPress admin panel

Initial Tags
php, wordpress

Initial Language
PHP