bp_show_admin_adminbar( bool $default = true )

Is the Toolbar hidden for admin users?

Description

Parameters

$default

(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 admin users, otherwise false.

Source

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

function bp_show_admin_adminbar( $default = true ) {

	/**
	 * Filters whether or not the toolbar is hidden for admin users.
	 *
	 * @since BuddyBoss 1.0.10
	 *
	 * @param bool $value Whether or not the toolbar is hidden.
	 */
	return (bool) apply_filters( 'bp_show_admin_adminbar', (bool) bp_get_option( 'show-admin-adminbar', $default ) );
}

Changelog

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