remove activity , buddypress tab

Home Forums Legacy Support Support queries How-to & Troubleshooting remove activity , buddypress tab

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #223215
    krishipathsala
    Spectator
    AS a student when someone open some course he can see the instructor of the course. when he click the instructor, he can see the  instructor's activity, buddy drive, profile, achievement. In the activity tab he can see all the quiz he uploaded and many more. So how to remove the activity tab? also the buddydrive tab? additionally I want to add picture with this topic to make you understand fully But I can't upload image. So can you told me how to attach image with this topic.  
    #223272
    logan
    Member

    Hello,

    Please paste this snippets in your wp-admin >>> plugins >>> editor >>> wplms-customizer plugin >>> wplms-customizer.php

    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

    }

    Refer: http://prntscr.com/ms6htq


    Tip: For better support always share a screenshot: Please provide the proper screenshot, use https://prnt.sc/ to upload and share url of the screenshot. If you want to send us a video of the issue, use https://screencast-o-matic.com/ to upload and share URL of the video.
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘remove activity , buddypress tab’ is closed to new replies.