WordPress.org

Ready to get started?Download WordPress

Forums

How to add annoucements for authors (2 posts)

  1. jdayen
    Member
    Posted 4 years ago #

    Hi Guys!

    I was just wondering if there is a plugin or something that would allow me to post announcements in the top section of the admin menu for my contributers, authors, editors, etc.

    Example: when you download a plugin that needs to be configured first, it shows the bar at the top that explains what to do.

    I want to be able to post announcements there. Is this possible?

    Jeremy

  2. MichaelH
    Member
    Posted 4 years ago #

    From my notes--add message to dashboard or admin panel:
    http://wordpress.org/extend/plugins/pre-publish-reminders/
    http://wordpress.org/extend/plugins/wp-cms-post-control/
    http://wordpress.org/extend/plugins/wordpress-admin-notepad/

    or a function

    function my_admin_notice() {
    
      if(current_user_can('create_users')) {
        echo "
        <div id='my_admin_notice' class='updated fade'><p><strong>".__('This is meant for admins.')."</strong> ".sprintf(__('Hello admins.'))."</p></div>
           ";
      } else {
    
        echo "
        <div id='my_admin_notice' class='updated fade'><p><strong>".__('This is meant for non-admins.')."</strong> ".sprintf(__('Please call me to discuss your options.'))."</p></div>
           ";
      }
    }
    add_action('admin_notices', 'my_admin_notice');
    return;

Topic Closed

This topic has been closed to new replies.

About this Topic