Need to customize login users “Settings” area

Home Forums Legacy Support Support queries Setup issues Need to customize login users “Settings” area

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #341084
    thusithdb
    Participant
    Hi, I have changed some user profile fields to "unavailable to all members" from the admin panel. But those all fields show in the dashboard "settings" window. I don't want to show all files in there. Also, no need to show "send email notice & export data setting" for log in students. See screenshot: https://prnt.sc/1003n9v Thanks Thusitha
    #341161
    Ada
    Participant
    This removes fields from profile but not in settings. You need to add code for it. please specify which fields you want to hide To hide “send email notice & export data setting” you need to install and activate wplms-customizer plugin from here https://wplms.io/support/knowledge-base/wplms-customizer-plugin/ Then goto plugin editor>>wplms customizer.php and add this code
    
    function hide_student_settings(){
      if( !current_user_can('edit_posts')){
        ?>
        <style>
    
      #vibebp_member .profile_grid .profile_settings .portal:last-child {
        display:none !important;
    }
    #vibebp_member .profile_grid .profile_settings .portal:nth-child(3) {
        display:none !important;
    }
    </style>
    <?php
    }
    }
    add_action('wp_head','hide_student_settings');
    
    #341574
    thusithdb
    Participant
    Hi Ada, Thanks for your codes. It works. Now OK my problem. You can close the topic. Thanks again for your great support. Thusitha
    #341714
    Veronica
    Moderator
    thanks for your confirmation closing this one
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Need to customize login users “Settings” area’ is closed to new replies.