BuddyDev

Search

How can user lock and unlock their profile using BuddyPress.

  • Participant
    Hetal Visaveliya on #6810

    Members can choose to lock and unlock their profile (activate / deactivate profile) → if locked not visible to other members → if unlocked visible to other members → always visible for admin with status activated / deactivated or locked / unlocked

  • Keymaster
    (BuddyDev Team)
    Posts: 21466
    Brajesh Singh on #6811

    Hi Hetal,
    We have a plugin specifically for that purpose.

    https://buddydev.com/plugins/bp-deactivate-account/

    It is a premium plugin.

    Since you are a developer yourself, I will share the strategy. You can just store a meta key for account deactivation and in the User query, just exclude all users having that meta key.

    Hope that helps.

You must be logged in to reply to this topic.

This topic is: not resolved