Rename Group Nav Not Working
-
Several years ago I used code I found here to rename the “Home” nav item on the Groups page. I used this code in my Theme functions.php file.
It has been working fine for about 4 years, but now when I go to create a new group, I get an error message
screenshot: https://share.getcloudapp.com/d5ub6x2pBelow is the code I am using. I assume something changed in an update so perhaps bp_current_item is not working anymore? Or edit_nav?
//* Rename “Home” to “Reflections”of menu item in BuddyPress Group
// buddypress()->bp_options_nav[buddypress()->groups->current_group->slug][‘home’][‘name’] = ‘Home/Reflections’;
buddypress()->groups->nav->edit_nav( array( ‘name’ => __( ‘Home/Reflections’, ‘buddypress’ ) ), ‘home’, bp_current_item() );}
- You must be logged in to reply to this topic.