[buddypress-trac] [BuddyPress Trac] #7736: bp_get_groups_slug filter and Profile screen
buddypress-trac
noreply at wordpress.org
Mon Apr 2 20:31:25 UTC 2018
#7736: bp_get_groups_slug filter and Profile screen
--------------------------+------------------------------
Reporter: jozik | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Core | Version: 1.5
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+------------------------------
Changes (by r-a-y):
* keywords: => dev-feedback
* version: => 1.5
Comment:
If you filter `'bp_get_groups_slug'`, you are changing how the
`bp_is_groups_component()` function is returned. That function will
always return false on your customized groups page.
So what you'll have to do is to also filter `'bp_is_current_component'` so
`bp_is_groups_component()` will return true with your custom group slug.
I'm not sure if this is something that BuddyPress core should
automatically implement or not, but that should get you up-and-running.
Tagged with `dev-feedback` to see if we should automaticaly implement this
or not.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7736#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list