Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/12/2016 09:52:23 PM (7 years ago)
Author:
slaffik
Message:

New filter for bp_get_group_permalink().

Currently, we have to filter both the group permalink and the slug if we want to filter the slug. The permalink should be built using the filtered slug.

Props dcavins.
Fixes #7340.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r11256 r11291  
    10001000         * @param object $group Group object.
    10011001         */
    1002         return apply_filters( 'bp_get_group_permalink', trailingslashit( bp_get_groups_directory_permalink() . $group->slug . '/' ), $group );
     1002        return apply_filters( 'bp_get_group_permalink', trailingslashit( bp_get_groups_directory_permalink() . bp_get_group_slug( $group ) . '/' ), $group );
    10031003    }
    10041004
Note: See TracChangeset for help on using the changeset viewer.