I want to hide PROFILE VISIBILITY.

Home Forums Legacy Support Support queries How-to & Troubleshooting I want to hide PROFILE VISIBILITY.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #222779
    engacademic
    Participant
    I want to hide PROFILE VISIBILITY. https://nimb.ws/qP8rUt
    #222834
    logan
    Member
    Hello, Please paste this snippets in your wp-admin >> plugins >> editor >> wplms-customizer plugin >> wplms-customizer.php  Or in Please add this code in your wplms-customizer.php file in wplms customizer plugin by using your FTP/SFTP/cpanel:   function logan_plz_remove_profile_field_visibility_tab() { if( bp_is_active( 'xprofile' ) ) bp_core_remove_subnav_item( 'settings', 'profile' );   } add_action( 'bp_ready', 'logan_plz_remove_profile_field_visibility_tab');
    #228162
    nehhaz
    Spectator
    Thanks for the post. Using this me too removed Profile Visibility Tab. Can we hide Export Data tab also?
    #228218
    logan
    Member

    Hello,

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

    add_filter( 'bp_settings_show_user_data_page', 'logan_plz_remove_export_data_tab_from_myprofile' );

    function logan_plz_remove_export_data_tab_from_myprofile($filter) {

    if(!current_user_can('manage_options')){

    return false;

    }else{

    return $filter;

    }

    }

    :this code will allow only admin to see the export tab.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘I want to hide PROFILE VISIBILITY.’ is closed to new replies.