Skip to:
Content
Pages
Categories
Search
Top
Bottom

Changing the word Groups

  • @pckelly123

    Participant

    Hello,

    Is there a faster way to change Groups to another name. Currently I am going through a .po file and changing any instance of “group” that I can find.
    I would also like to change the path so it would become sitename/communities/groupname instead of sitename/groups/groupname
    I am currently using WP 4.4.2 and BuddyPress 2.5.2

Viewing 8 replies - 1 through 8 (of 8 total)
  • @henrywright

    Moderator

    @pckelly123

    Participant

    Hi Henry,

    Would using the gettext filter require going through and making sure each piece of text is using the correct text-domain?

    @pckelly123

    Participant

    I changed the language files instead of using the gettext method because of the performance warnings.

    However, I still can’t figure out how to change the url
    I followed this thread
    https://buddypress.org/support/topic/resolved-changing-groups-to-teams/
    Which lead me to try the suggestion but it looks like that constant is at least deprecated if not removed.

    Changing Internal Configuration Settings

    Any ideas?

    @henrywright

    Moderator

    You’re right @pckelly123, those constants are deprecated. Instead, try:

    add_filter( 'bp_get_groups_slug', function() {
        return 'yourslughere';
    } );

    @pckelly123

    Participant

    I tried adding the filter to both my bp-custom.php and my theme’s functions.php neither seemed to make it work.

    @henrywright

    Moderator

    Try bp_get_groups_root_slug instead. Perhaps it’s the root slug you need changing?

    @pckelly123

    Participant

    Hi Henry,

    The root slug is what I need to change. However it looks like just trying to change it with the `add_filter( ‘bp_get_groups_root_slug’, function() {
    return ‘new_slug’;
    } );`
    Will break the existing pages.
    Is there a better way to change sitename/groups_root_slug/groupname url?

    @henrywright

    Moderator

    If you change the URL, then requests to the old URL should return a 404. That’s the expected (and recommended) behaviour.

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Skip to toolbar