BuddyDev

Search

[Resolved] Unable to disable the BuddyPress user personal data export setting.

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #20146

    Hi Brajesh,

    I have followed exactly the steps outlined here https://buddydev.com/disable-buddypress-user-personal-data-export-setting/
    but it doesn’t seem to work.

    Would appreciate some feedback as I believe I may not have done so correctly (being very new to Buddy Press).

    Thanks!

    Edward

  • Keymaster
    (BuddyDev Team)
    Posts: 24622
    Brajesh Singh on #20150

    Hi Edward,
    Welcome to BuddyDev.

    Where did you put the code? The code should go you to your current active theme(or child theme’s) functions.php

    or if you have wp-content/plugins/bp-custom.php, you can put it there too.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #20153

    Hi Brajesh,

    Thanks for your reply!

    I’ve placed the code in wp-content/plugins/bp-custom.php as follows:

    <?php
    add_filter( ‘bp_settings_show_user_data_page’, ‘__return_false’ );
    ?>

    Is this correct?

    Appreciate your feedback.

    Thanks again

    Edward

  • Keymaster
    (BuddyDev Team)
    Posts: 24622
    Brajesh Singh on #20155

    Hi Edward,
    yes, It is correct. Please make sure there are no white spaces before

    
    <?php
    

    tag and you can ignore/remove the last closing tag.

    That is, this

    
    ?>
    

    can be safely removed.

    Please give it a try.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #20158

    Hi Brajesh,

    I tried exactly as you explained it and it is still not working (i.e. the export data tab is still in the Settings).

    I really don’t know what went wrong….

    If I have to place the code in functions.php of my theme, how do I do it? There’s quite a lot of code there as it is.

    Kindly advise.

    Thanks again.

    Best regards
    Edward

  • Keymaster
    (BuddyDev Team)
    Posts: 24622
    Brajesh Singh on #20163

    Hi Edward,

    I am sorry but I am not sure why it did not work. If BuddyPress is active, It should work. Yes, You can put the same code in theme’s functions.php.

    Does you functions.php has a closing php tag like this at the bottom of the file

    
    ?>
    

    Put this line

    
    add_filter( 'bp_settings_show_user_data_page', '__return_false' );
    

    before the closing.

    If there is no closing tag then you can simply put it at the bottom of the file.

    Hope that helps.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #20182

    Hi Brajesh,

    Just tried placing the code in the theme’s functions.php (child theme) but it doesn’t work as well.

    Is it possible to do this as a plugin?

    I recalled downloading your plugin for changing the username on Buddypress forums and it work wonderfully and speedily (it was also for the same site that we are currently developing).

    Hope that this route using a plugin is possible. Really hope to fix this issue soonest.

    Thanks so much Brajesh for your kind assistance and prompt replies!

    Best regards
    Edward

  • Participant
    Level: Enlightened
    Posts: 21
    Edward on #20184

    Hi Brajesh,

    This issue is resolved for my site!

    I’ve placed the code in the child theme functions.php which was wrong. When the code was placed in the main theme’s functions.php, the export data tab is hidden and it works wonderfully.

    Thanks so much for your kind and prompt assistance.

    Warm regards
    Edward

  • Keymaster
    (BuddyDev Team)
    Posts: 24622
    Brajesh Singh on #20197

    Thank you Edward,
    I am glad it is resolved.

    Best Regards
    Brajesh

The topic ‘ [Resolved] Unable to disable the BuddyPress user personal data export setting.’ is closed to new replies.

This topic is: resolved