Support » Plugin: WP-TopBar » How to add welcome message to user plus time and date?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bob

    (@rfgoetz)

    See the PHP tab, there is sample code there that shows you how to modify the TopBar based on if the user is logged in. This one adds their name. You can modify this to add time and date:

    if ( is_user_logged_in() ) {
      global $current_user;
      get_currentuserinfo();
      $wptbOptions['bar_text'] = $current_user->display_name.", ".  $wptbOptions['bar_text'];
    }
    Plugin Author Bob

    (@rfgoetz)

    Closed – no response in a week.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add welcome message to user plus time and date?’ is closed to new replies.