Simple Admin Notices

If you need to add a simple warning or error notice to the WordPress admin area, or if you just to to make a small announcement to the site users, you can do so pretty easily.

add_action('admin_notices','simple_announcement');
function simple_announcement() {
    ?><div class="updated">
    <p>hello</p>
    </div><?php
}

Leave a Reply

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

%d bloggers like this: