Remove "Export data" from profile settings

Home Forums Legacy Support Support queries How-to & Troubleshooting Remove "Export data" from profile settings

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #265803
    JDKCON
    Participant
    Hi,

    How can I remove the "export data" function shown below.

    https://snipboard.io/qd6UIA.jpg

    I tried adding the code from this post https://wplms.io/support/forums/topic/remove-data-export-per-user/

    Your PHP code changes were rolled back due to an error on line 112 of file wp-content/plugins/wplms-customizer/wplms-customizer.php. Please fix and try saving again.

    syntax error, unexpected 'remove_export_data_bp' (T_STRING), expecting '('

    The plugin then dissappeared and I had to delete via ftp and reinstall - tried again but got same result.

    I also tried the fix suggested in this post but it had no effect.

    https://wplms.io/support/forums/topic/disable-export-data-tab-in-user-profile/

    thanks

    Anthony

    #265981
    Diana
    Participant
    @JDKCON, Either use this code add_filter( 'bp_settings_show_user_data_page', '__return_false' ); OR add_action( 'bp_actions', 'remove_export_data_bp',99 ); function remove_export_data_bp() { bp_core_remove_subnav_item( 'settings', 'data' ); } And you have to add code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin  wplms-customizer.php Are you sure you are adding the code at correct place? If still not working, share the site URL with admin credentials in a private reply. I will look into this  
    #267707
    JDKCON
    Participant
    This reply has been marked as private.
    #267759
    Diana
    Participant
    This reply has been marked as private.
    #268322
    JDKCON
    Participant
    https://snipboard.io/nimjkb.jpg   sorry on my computer still not working please see screenshot above Anthony  
    #268514
    Diana
    Participant
    This reply has been marked as private.
    #272624
    JDKCON
    Participant
    This reply has been marked as private.
    #272828
    Diana
    Participant
    This reply has been marked as private.
    #272955
    JDKCON
    Participant
    https://www.brainreno.com/members/stephbeck/settings/ I think you are at the wrong URL its under the settings tab. Anthony  
    #273020
    Diana
    Participant
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Remove "Export data" from profile settings’ is closed to new replies.