[buddypress-trac] [BuddyPress Trac] #7736: bp_get_groups_slug filter and Profile screen
buddypress-trac
noreply at wordpress.org
Wed Aug 1 18:22:26 UTC 2018
#7736: bp_get_groups_slug filter and Profile screen
--------------------------+-------------------------------------
Reporter: jozik | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Contributions
Component: Route Parser | Version: 1.5
Severity: normal | Resolution:
Keywords: |
--------------------------+-------------------------------------
Comment (by r-a-y):
How are you implementing your filter?
It should look like this:
{{{
function my_bp_is_current_component_groups_slug_override( $retval,
$component ) {
if ( bp_current_component() === bp_get_groups_slug() && 'groups'
=== $component ) {
return true;
}
return $retval;
}
add_filter( 'bp_is_current_component',
'my_bp_is_current_component_groups_slug_override', 10, 2 );
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7736#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list