Skip to:
Content

BuddyPress.org

Changes between Initial Version and Version 1 of Ticket #7736, comment 1


Ignore:
Timestamp:
04/03/2018 12:57:45 AM (7 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7736, comment 1

    initial v1  
    11If 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.
    22
    3 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.
     3So 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:
     4https://buddypress.trac.wordpress.org/browser/tags/2.9.3/src/bp-core/bp-core-template.php?marks=1706-1714#L1706
    45
    56I'm not sure if this is something that BuddyPress core should automatically implement or not, but that should get you up-and-running.