BuddyDev

Search

[Resolved] Question about visibility of profile fields (in the wp database)

  • Participant
    Level: Initiated
    Posts: 17
    Mike Witt on #48804

    Hi,

    I need to identify my users who have marked specific profile fields as private. When a user marks a field as private, “only friends” or whatever — where does buddypress store that information the database?

    I’ve looked at: bp_xprofile_data, bp_xprofile_fields, and bp_xprofile_meta but (AFAICT) it’s not in any of those.

    Anyone know where this information is stored?

    Many thanks!

    Mike

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #48807

    Hi Mike,
    Thank you for the question.

    The data is stored in user meta as serialized array(field id=> viability level). I am unable to suggest a nice way to query it.
    Please take a look at the meta key ‘bp_xprofile_visibility_levels’ in user meta.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 17
    Mike Witt on #48818

    Thanks Brajesh, that’s perfect. I see it there. I can just loop through and unserialize to look for the values I need. Thanks so much!

  • Keymaster
    (BuddyDev Team)
    Posts: 24212
    Brajesh Singh on #48829

    Hi Mike
    You are welcome.

The topic ‘ [Resolved] Question about visibility of profile fields (in the wp database)’ is closed to new replies.

This topic is: resolved