Problems with $bp->current_component – Am I doing something wrong?
-
In writing a custom component for BuddyPress I need to determine whether the user is on any page within the Groups section of the site.
The problem is that
$bp->current_component == 'groups'
returns true if the user is on the Groups page of a user’s profile too (eg on /members/[username]/groups/ ).How can I differentiate between the Groups section of the site and a Groups page in a user’s profile?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Problems with $bp->current_component – Am I doing something wrong?’ is closed to new replies.