Created a website on Wordpress, connected the Buddypress social network plugin, and forgot to put the captcha. As a result, I have 3000 users and 10,000 groups of spam.

In the admin 100+ pages of groups and almost as many pages of users. Approximately 100 users and groups per page. Manually delete a VP only gives one page. Those. deleting all pages of groups and all pages of users will take 100,500 hours!

Please advise the plugin or method so that you can delete all groups and users, except for a few.

  • You can delete this all via FTP. Try to find out which folder they are in and which files to clean. - Valery Emelyanov
  • Through FTP it is impossible. Users are recorded in the database. possible via phpMyAdmin . It seems to me that you can do it even without knowing SQL - just select all users, remove the checkmarks from the ones you need and erase them. But perhaps Buddypress makes additional entries in the database. It is worth checking out otherwise there will be rubbish. - s976

1 answer 1

  1. Look at the functions that delete users and groups (see BP_Groups_Group::delete() in bp-groups\classes\class-bp-groups-group.php , BP_Signup::delete() in bp-members\classes\class-bp-signup.php );
  2. In the functions to identify requests to the database;
  3. Write a script that will fulfill all the necessary requests or make them manually through phpMyAdmin

You can also call the necessary methods using a samopisny script to which to connect /wp-load.php

  • As far as I know, all users are in the database. And if there are obvious signs of spam, for example, a key, then you can use the phpmyadmin search. - Basil Jimmy