Skip to:
Content
Pages
Categories
Search
Top
Bottom

Delete All members with Default Avatar


  • asim314
    Participant

    @asim314

    Hy Guys! I am developing a website in which I need to delete all those users who have default avatar if (‘BP_AVATAR_DEFAULT’) in BuddyPress, as i am new to wordress and web development I am unable to figure it out that how can I iterate through each user and delete its membership e.g. delete user from the database along with all its data and only leave those users who have uploaded their profile avatar.

Viewing 2 replies - 1 through 2 (of 2 total)

  • asim314
    Participant

    @asim314

    Anyone there to response?


    iamthewebb
    Participant

    @iamthewebb

    Others may have a considerably better solution but I’d probably run a query to get all the User IDs that match your requirements, set those user IDs to an unused user level then use a plugin like bulk delete to delete the users with that access.

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