Remove Profile menu items

Home Forums Legacy Support Support queries How-to & Troubleshooting Remove Profile menu items

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #320768
    musa_ajk
    Participant
    Hello. 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 }
    #320999
    Diana
    Participant
    Warnings 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 reply
    #321509
    musa_ajk
    Participant
    Hi 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 COURSES
    #321748
    Diana
    Participant
    This code will remove Export data tab
    
    add_filter( 'bp_settings_show_user_data_page', '__return_false' );
    
    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.php
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove Profile menu items’ is closed to new replies.