Warning: This function has been deprecated.

bp_adminbar_login_menu()

Output the “Log In” and “Sign Up” names to the BuddyBar.


Description Description

Visible only to visitors who are not logged in.


Return Return

(false|null) Returns false if the current user is logged in.


Top ↑

Source Source

File: bp-core/deprecated/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', 'buddypress' ) . '</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', 'buddypress' ) . '</a></li>';
	}
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.