I tried using the code found here:
To apply a default setting to the “Message Privacy” plugin. I registered a new user to make sure the custom code set the default setting to, “Friends Only”, but it didn’t seem to work. Any thoughts or ideas on how to adjust the code or find an alternative solution?
Hope you and the team are doing well!
Thanks for your help!
Welcome back 🙂
We are doing well and hope the same for you.
Is there any chance that you are using a plugin that does some thing with the user activation? Like our Auto Activate Auto Login redirect plugin or something similar?
The above code is hooked to activation action, so just trying to find out a possible reason.
Btw, did you put it in bp-custom.php or functions.php?
Thanks! It’s always great coming back 🙂
Here are all the plugins that could impact user activation:
-BP Auto Activate Autologin Redirect To Profile On Signup
-BuddyDev Username Availability Checker
-Multisite User Management
-BP Force Profile Photo
And I only tested it in bp-custom.php, so let me know if I should try in functions.php as well?
I am sorry for the inconvenience. It was a mistake on my part in the example code.
The code should have used ‘privacy_type’ instead of ‘privacy’ in the array key.
I have updated the code. Please use it and It will work.
Please do know that the Default Message Privacy settings will work for all users who haven’t manually saved settings for the message privacy. There is no need for new user registration.
Please do let me know if it works for you or not?
The topic ‘ [Resolved] Message Privacy – Default Settings Code’ is closed to new replies.