BuddyDev

Search

Private avatar

  • Participant
    Level: Enlightened
    Posts: 94
    Ankit Raj on #33305

    Is there a way i can make my avatar private

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2461
    Ravi on #33308

    Hello Ankit,

    Thank you for posting. Yes, It can be doable via code. You can check the current user role, member type and based on it you can filter the user’s avatar.

    Please check this function

    https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/bp-core-avatars.php#L192

    Regards
    Ravi

  • Participant
    Level: Enlightened
    Posts: 94
    Ankit Raj on #33312

    I don’t have members type and i don’t want to. I just want to allow my site members to have the option to make their avatar private. My site role is subscribers.
    Can you give me the code

  • Keymaster
    (BuddyDev Team)
    Posts: 21852
    Brajesh Singh on #33475

    Hi Ankit,
    Thank you for the details.

    I am sorry, we are unable to provide you any code. This is beyond what we can offer as free support.

    we do plan to offer it in one of our upcoming plugins.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved