Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Remove Profile menu items
Tagged: profile menu
- This topic has 3 replies, 2 voices, and was last updated 4 years, 1 month ago by Diana.
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
October 26, 2020 at 8:57 am #320768musa_ajkParticipantHello. Been trying to remove Profile menu items by editing "wplms-customizer plugin" in plugins-editor and inserting the code below, but receive the following error. Please advise: ============= (Error): Warning: Use of undefined constant ‘bp_setup_nav’ - assumed '‘bp_setup_nav’' (this will throw an Error in a future version of PHP) in /var/www/virtual/sais.org.uk/htdocs/wp-content/plugins/wplms-customizer/wplms-customizer.php on line 41 Warning: Use of undefined constant ‘bp_remove_profile_menu’ - assumed '‘bp_remove_profile_menu’' (this will throw an Error in a future version of PHP) in /var/www/virtual/sais.org.uk/htdocs/wp-content/plugins/wplms-customizer/wplms-customizer.php on line 41 ================== (Code Inseerted): add_action( ‘bp_actions’, ‘remove_member_profile_tabs’, 5 ); function remove_member_profile_tabs() { global $bp; bp_core_remove_nav_item( ‘activity’ ); //for activity tab removal bp_core_remove_nav_item( ‘forums’ ); //for forums tab removal bp_core_remove_nav_item( ‘groups’ ); //for group tab removal bp_core_remove_nav_item( ‘messages’ ); //for messages tab removal bp_core_remove_nav_item( ‘friends’ ); //for friends tab removal bp_core_remove_nav_item( ‘course’ ); //for course tab removal bp_core_remove_nav_item( ‘achievements’ ); //for achievements tab removal bp_core_remove_nav_item( ‘notifications’ ); //for notifications tab removal }October 27, 2020 at 8:19 am #320999DianaParticipantWarnings you can totally ignore Ask your WebHost to set WP_Debug to OFF in the config file And the above code will only work in case you didn't migrate to v4 and still on v3 If you are not able to solve, you can share your credentials with me here in a private replyOctober 29, 2020 at 1:03 am #321509musa_ajkParticipantHi Diana. Many thanks for reply. Seems we are on version 3.9.8.1 and code did not work. We managed to get rid of most of the items on Profile Menu by disabling some options in WPLMS >> Buddypress. We are left with the menu items below, which is fine. However, how would we get rid of some of the horizontal menu items from those menu items on Profile menu (e.g. for Settings, the menu items are General, Email, Export Data. How would we get rid of Email for instance)? PROFILE DASHBOARD SETTINGS BUDDYDRIVE COURSESOctober 29, 2020 at 6:08 pm #321748DianaParticipantThis code will remove Export data tab
But for General and Email Tab I need to check The above code you need to add in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.phpadd_filter( 'bp_settings_show_user_data_page', '__return_false' );
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- The topic ‘Remove Profile menu items’ is closed to new replies.