SHARE
TWEET

Untitled

a guest Mar 19th, 2012 118 Never
  1. <?php
  2.   // custom functions for tweaking BuddyPress
  3.   function custom_adminbar_dashboard_button() {
  4.     // adds a "Dashboard" link to the BuddyPress admin bar if a user is logged in.
  5.     if (is_user_logged_in()) {
  6.         echo '<li><a href="/forums/">Agent Forums</a></li>';
  7.         echo '<li><a href="/members/">Directory</a></li>';
  8.         echo '<li><a href="/ticket/">Support</a></li>';
  9.         echo '<li><a href="/advantage-companies/">Company Connection</a></li>';
  10.     }
  11.    }
  12.   add_action('bp_adminbar_menus', 'custom_adminbar_dashboard_button', 1);
  13.  ?>
RAW Paste Data
Top