bp_show_login_adminbar( bool $default = true )

Is the Toolbar hidden for logged in users?

Description

Parameters

$default

(bool) (Optional) Fallback value if not found in the database. Default: true.

Default value: true

Return

(bool) True if the admin bar should be hidden for logged in users, otherwise false.

Source

File: bp-core/bp-core-options.php

function bp_show_login_adminbar( $default = true ) {

	/**
	 * Filters whether or not the toolbar is hidden for logged in users.
	 *
	 * @since BuddyPress 1.6.0
	 *
	 * @param bool $value Whether or not the toolbar is hidden.
	 */
	return (bool) apply_filters( 'bp_show_login_adminbar', (bool) bp_get_option( 'show-login-adminbar', $default ) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.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.