tr Skip to content
Black Friday FlowMattic for life, 12 payments of $33.25 Or $399 once. Nothing added for splitting Ends in --Days --Hrs --Min --Sec See the deal

When a user leaves a group in BuddyPress, revoke all badges in myCred

When a member leaves a BuddyPress group, this workflow removes every myCred badge that member holds, so leaving a group also clears their badges on your WordPress community site.

BuddyPress myCred

2 steps Setup ~5 min Used on 1.5k sites Free to import

The When a user leaves a group in BuddyPress, revoke all badges in myCred workflow on the FlowMattic canvas, with 2 steps across BuddyPress, myCred
The workflow as it appears in the builder after import. Each step opens for editing.

What this workflow does

Some communities tie badges to group membership. When a member walks away from the group, the badges they earned there may no longer make sense. This workflow strips a member's myCred badges as soon as they leave a BuddyPress group.

The BuddyPress trigger fires when a user leaves a group. That event carries the WordPress user, which FlowMattic passes to myCred. The Revoke All Badges action then removes all badges from that user.

Be clear about the scope before you turn it on. The action removes all of the user's badges, not only ones linked to the group they left. As imported, leaving any group runs the workflow, since there is no Filter. Both plugins run on your own site, and Task History shows each run and which user it acted on.

Single-group membership site

Your community has one main BuddyPress group and badges only make sense inside it. Leaving that group resets the member's myCred badges.

Course cohort groups

Each cohort has a group, and badges mark progress in it. Add a Filter for the cohort's group so leaving it clears that member's badges.

Clean slate when a member leaves

A member who quits your community group loses the badges shown on their profile, so badges only appear on people still taking part.

How this workflow runs

What happens at each step once the workflow is on, and what you need before you import it.

  1. Step 1Trigger
    BuddyPress User Leaves Group

    Fires when a user leaves a BuddyPress group on your site. The user and group details are passed on, so the myCred step knows whose badges to remove.

  2. Step 2Action
    myCred Revoke All Badges

    Removes every myCred badge from the user who left the group. Map the user from the BuddyPress trigger into this step, then test with a member who holds a badge.

What you need

  • FlowMatticCore
  • BuddyPress PluginPlugin
  • myCred PluginPlugin

After importing, map your own data. To keep the template universal, not every step is pre-filled. Open each step in the builder and connect your accounts and fields (channels, lists, sheets, recipients) before you switch the workflow on.

Make it yours

Changes worth making after you import it.

  • Add a Filter after the trigger on the group ID, so only leaving your chosen group removes badges.
  • If you only want to remove one badge, swap this step for myCred Revoke Badge and choose the badge linked to the group.
  • Leave a test group with a test account that holds a badge, then check Task History and the account's profile to confirm the badges were removed.

Questions about this workflow

Does myCred remove only badges from the BuddyPress group the member left?

No. Revoke All Badges removes every badge the user holds. Use Revoke Badge instead if you want to remove a single badge.

Are myCred points affected when someone leaves a group?

No. This workflow only revokes badges. Points stay as they are unless you add a Deduct Points step.

Does it run when an admin removes someone from a BuddyPress group?

The trigger listens for a user leaving a group. Test an admin removal on a staging site to see whether BuddyPress reports it the same way.

Do BuddyPress and myCred need to be on the same site?

Yes. Both plugins must be active on the WordPress site where FlowMattic runs, since the workflow uses the same WordPress user in both.

Import this workflow into your WordPress site

Download the JSON, import it from the Workflows screen and connect your accounts. Every run stays on your server, with no per-task fees.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Customers who run it every day

Rated 4.8 out of 5 by customers
Read more reviews

Was spending much more on Zapier and running out of tasks, now have unlimited tasks. Team is continuing to add integrations and taking feedback. Creator of company is ultra responsive to emails and helpful always.

Brad U.

It's an exceptional product. Works great and extremely valuable. I saved thousands of dollard on Zapier, as Flowmattic makes me able to host the automation myself. And very deeply integrates with the products I need.