Home > Featured > How to display a notice in the WordPress admin for all users
Bookmark and Share

How to display a notice in the WordPress admin for all users

Posted on December 20, 2012 | Filed in Featured, Wordpress

If you need to display a notice in your wordpress admin to all users, there is a simple method. Just add the following code to your theme’s function.php file.

function this_admin_notice()
{
echo ‘<div class=”updated”>
<p>Whatever HTML</p>
</div>’;
}

add_action(‘admin_notices’, ‘this_admin_notice’);

Leave a Reply

Contact Us

Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001

[email protected]

Search Blog