bp_hide_loggedout_adminbar( bool $default = true )
Is the Toolbar hidden for logged out users?
Description Description
Parameters Parameters
- $default
-
(Optional) Fallback value if not found in the database. Default: true.
Default value: true
Return Return
(bool) True if the admin bar should be hidden for logged-out users, otherwise false.
Source 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 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 Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |