How to rename custom buddypress menu items
-
Hello,
I’m running a multisite.
My WordPress version is 4.6.1 and BuddyPress is version is 2.7.2.I would like to change the custom profile menu item names. I have searched around google, wordpress, stack-exchange for days now, and I’m only finding solutions on how to “edit actual BuddyPress menu items” like ‘activity,’ ‘profile,’ and all..
Because my installation is multisite, I have a menu item “sites” which I would like to have changed to something like “Schools”
I’ve tried the below code but, it’s working only on default buddypress menu item.
//***************************************************************************************// function bpcodex_rename_profile_tabs() { buddypress()->members->nav->edit_nav( array( 'name' => __( 'Support', 'textdomain' ) ), 'forums' ); buddypress()->members->nav->edit_nav( array( 'name' => __( 'Study Groups', 'textdomain' ) ), 'groups' ); buddypress()->members->nav->edit_nav( array( 'name' => __( 'Schools', 'textdomain' ) ), 'site' ); } add_action( 'bp_actions', 'bpcodex_rename_profile_tabs' );
Please help..
- You must be logged in to reply to this topic.