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?
You must be logged in to reply to this topic.