Support » Plugin: bbPress Notify (No Spam) » Bulk Unsubscribe users from forums

  • Resolved totus88

    (@totus88)


    Hello, by mistake I subscribed some users (50+) to all forums (25+ forums). Is there a way to bulk unsubscribe them from all the forums even via DB query?
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author useStrict

    (@usestrict)

    Hi @totus88,

    I’m curious how you did the bulk subscribe.

    To unsubscribe, I think the best option is via wp-cli, as doing a DB update may mess things up for bbPress.

    I would write a small script that would fetch the user IDs (not sure how you will identify them, do you have the IDs?), then iterate over all forums and call bbp_remove_user_subscription($user_id, $forum_id).

    You can then call that script with wp-cli eval-file /path/to/script.php

    Cheers,
    Vinny

    Thread Starter totus88

    (@totus88)

    I think it’s because I selected this option by mistake:

    Automatically subscribe new users to all forums.

    Enabling this option will make it so that users get subscribed to all forums the moment that they’re registered They can unsubscribe from the forums later to stop receiving topic notifications.

    Unfortunately I am not able to code this script, is there another way I can do this?

    Thanks!

    Plugin Author useStrict

    (@usestrict)

    In this case, I recommend installing bbp-toolkit plugin, then going to Admin > Users, and clicking Susbcriptions under each user you want to unsubscribe. You’ll be shown a screen that will allow you to manage their subscriptions.

    Cheers,
    Vinny

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.