BP_Core_Members_Switching::filter_show_admin_bar( $retval )
Filter force show the admin bar while switched to the user
Description
Parameters
- $retval
-
(Required)
Return
(bool)
Source
File: bp-members/classes/class-bp-core-members-switching.php
public function filter_show_admin_bar( $retval ) { $old_user = self::get_old_user(); if ( $old_user instanceof WP_User ) { return true; } return $retval; }
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.