bp_is_my_groups_view()
Check if this is a user’s “My Groups” view? This can happen on the main directory or at a user’s profile (/members/username/groups/).
Description
Return
(bool) True if yes.
Source
File: bp-groups/bp-groups-functions.php
3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 | function bp_is_my_groups_view() { $retval = false; // Could be the user profile groups pane. if ( bp_is_user_groups() ) { $retval = true; // Could be the "my groups" filter on the main directory? } elseif ( bp_is_groups_directory() && ( isset( $_COOKIE [ 'bp-groups-scope' ] ) && 'personal' == $_COOKIE [ 'bp-groups-scope' ] ) ) { $retval = 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.