Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // custom functions for tweaking BuddyPress
- function custom_adminbar_dashboard_button() {
- // adds a "Dashboard" link to the BuddyPress admin bar if a user is logged in.
- if (is_user_logged_in()) {
- echo '<li><a href="/forums/">Agent Forums</a></li>';
- echo '<li><a href="/members/">Directory</a></li>';
- echo '<li><a href="/ticket/">Support</a></li>';
- echo '<li><a href="/advantage-companies/">Company Connection</a></li>';
- }
- }
- add_action('bp_adminbar_menus', 'custom_adminbar_dashboard_button', 1);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement