bp_hide_loggedout_adminbar( bool $default = true )
Is the Toolbar hidden for logged out 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 logged-out users, otherwise false.
Source
File: bp-core/bp-core-options.php
function bp_hide_loggedout_adminbar( $default = true ) { /** * Filters whether or not the toolbar is hidden for logged out users. * * @since BuddyPress 1.6.0 * * @param bool $value Whether or not the toolbar is hidden. */ return (bool) apply_filters( 'bp_hide_loggedout_adminbar', (bool) bp_get_option( 'hide-loggedout-adminbar', $default ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.6.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.