This function has been deprecated. BuddyPress 2.1.0 instead.
bp_adminbar_login_menu()
Output the “Log In” and “Sign Up” names to the BuddyBar.
Description
Visible only to visitors who are not logged in.
Return
(false|null) Returns false if the current user is logged in.
Source
File: bp-core/deprecated/buddypress/2.1.php
function bp_adminbar_login_menu() { if ( is_user_logged_in() ) { return false; } echo '<li class="bp-login no-arrow"><a href="' . wp_login_url() . '">' . __( 'Log In', 'buddyboss' ) . '</a></li>'; // Show "Sign Up" link if user registrations are allowed if ( bp_get_signup_allowed() ) { echo '<li class="bp-signup no-arrow"><a href="' . bp_get_signup_page() . '">' . __( 'Sign Up', 'buddyboss' ) . '</a></li>'; } }
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.