The Default Privacy API allows you to manage the default privacy of site member profiles based on how much you want members to interact with each other by setting the privacy status that site members get when signing up on a site. The privacy status details whether members can make their profile public, and whether it's visible to all visitors or only to logged-in members.
When a profile is public, the member's name and image appear next to their activities, such as any comments, likes or files they post.
With the Default Privacy API, you can:
You can override the default status for current members with the Member Privacy Settings API. The new settings apply to the current members of the site, overriding the default status. Newly signed-up members continue to have only the default status applied.
PRIVATE
:Call Set Member Privacy Settings to update the privacy settings to PUBLIC
. Current members now have the option to make their profiles PUBLIC
. Newly signed-up members will have private profiles by default but can then change their profiles to PUBLIC
.
PUBLIC
:Call Set Member Privacy Settings to update the privacy settings to PRIVATE
. All current and newly signed-up members can't make their profiles PUBLIC
.
It’s important to note the following before starting to code: