Hi Henry,
Would using the gettext filter require going through and making sure each piece of text is using the correct text-domain?
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?
You’re right @pckelly123, those constants are deprecated. Instead, try:
add_filter( 'bp_get_groups_slug', function() {
return 'yourslughere';
} );
I tried adding the filter to both my bp-custom.php and my theme’s functions.php neither seemed to make it work.
Try bp_get_groups_root_slug
instead. Perhaps it’s the root slug you need changing?
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?
If you change the URL, then requests to the old URL should return a 404. That’s the expected (and recommended) behaviour.