Hello team,
hope everyone is doing great!
I have a quick question for you.
How can I add a new menu tab on the profile page? Please look at the link below.
https://imgur.com/0H5LqvH
Appreciate any feedback on this
Hello @Kasimrixa,
For editing the buddypress profile menu you can use the "bp_setup_nav" action, for more information about this action refer:
http://hookr.io/actions/bp_setup_nav/
And can use this plugin for same work :
https://wordpress.org/plugins/buddypress-custom-profile-menu/
Thanks,
This plugin is not downloadable anymore
Hello,
Well to add tabs from user's profile you can add this code in your wplms-customizer.php file :
function bp_add_nav_tabs() {
bp_core_add_nav_item( 'activity');
bp_core_add_nav_item( 'notifications');
bp_core_add_nav_item( 'commissions'); //you can add like this
}
add_action( 'bp_setup_nav', 'bp_add_nav_tabs',999 );
==>> to remove tabs from user's profile you can add this code in your wplms-customizer.php file :
function bp_remove_nav_tabs() {
bp_core_remove_nav_item( 'activity');
bp_core_remove_nav_item( 'notifications');
bp_core_remove_nav_item( 'commissions'); //you can add like this
}
add_action( 'bp_setup_nav', 'bp_remove_nav_tabs',999 );
Thanks,