This function has been deprecated. BuddyPress 2.1.0 instead.
bp_adminbar_random_menu()
Output the Random BuddyBar menu.
Description
Not visible for logged-in users.
Source
File: bp-core/deprecated/buddypress/2.1.php
function bp_adminbar_random_menu() { ?> <li class="align-right" id="bp-adminbar-visitrandom-menu"> <a href="#"><?php _e( 'Visit', 'buddyboss' ) ?></a> <ul class="random-list"> <li><a href="<?php bp_members_directory_permalink(); ?>?random-member" rel="nofollow"><?php _e( 'Random Member', 'buddyboss' ) ?></a></li> <?php if ( bp_is_active( 'groups' ) ) : ?> <li class="alt"><a href="<?php bp_groups_directory_permalink(); ?>?random-group" rel="nofollow"><?php _e( 'Random Group', 'buddyboss' ) ?></a></li> <?php endif; ?> <?php if ( is_multisite() && bp_is_active( 'blogs' ) ) : ?> <li><a href="<?php bp_blogs_directory_permalink(); ?>?random-blog" rel="nofollow"><?php _e( 'Random Site', 'buddyboss' ) ?></a></li> <?php endif; ?> <?php do_action( 'bp_adminbar_random_menu' ) ?> </ul> </li> <?php }
Changelog
Version | Description |
---|---|
BuddyPress 2.1.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.