public

Buddypress - Change Groups slug

  • Download Gist
change_buddypress_groups_slug.php
PHP
1 2 3 4 5 6 7 8
 
 
// add this code to functions.php
// then edit groups page from wpadmin pages ( change permalink slug to "your_new_slug_for_groups" ) and save!
add_filter('bp_get_groups_root_slug', 'bp_change_groups_root_slug');
function bp_change_groups_root_slug( $group ){
return "your_new_slug_for_groups"; //For example "gatherings"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.