If you know the user id, you could create a link similar to https://example.com/wp-admin/users.php?action=delete&user=2 , where the value of the user is the user ID.
You can also hook into a function in the users.php
file. It’s a core file, so you don’t want to change it. But you can use the functions therein to properly delete the user.
Related Posts:
- Share user table from WP with Drupal
- Reset Password policy
- How do you manage your pages or functions that require logged-in users?
- determine active user browser at the same time
- How to programatically change username (user_login)?
- Replacing the WordPress password validation
- WordPress auto login after registration not working
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- Hide Admin Menu for Specific User ID who has administrator Role
- Allow up to 5 Concurrent Login Sessions
- Allowing an email as the username?
- Check if specific username is logged in
- Force display name as full name
- Pre-populate Username Field
- Front end user meta options for users
- How to keep track of user logins?
- Associate Page with User
- User fields that can be edited by administrator?
- How to customize wp_signon()
- Is it possible to get a user with just the password field?
- Redirect User to Homepage if no other redirect is specified
- Use phpbb user database for WordPress
- WordPress to use Drupal users’ credentials
- A way to count logged in users and display count?
- stop login if user_status equal zero
- Does wp_delete_user() remove all user content?
- Hide everything on site for visitors except specific page IDs
- Redirecting or displaying a message on first login
- How do i make my wordpress website private?
- Managing Users and Creating Groups [closed]
- show text If special user is logged
- How to delete all post and attachments of a user when I delete it?
- Upgrade Nightmare – No Posts, Permissions Issues and Can’t Create a new post
- Redirect user to login before viewing custom post
- Change the user_login at registration
- Max no of simultaneous active sessions for a single user
- Allow user access to Dashboard only!
- Restrict access of admin uploads to certain logged-in users?
- When I try to login in wordpress it is showing “USER Doesn’t Exists”
- wordpress user roles are not working
- Displaying different in-page content to cliente/admin
- Redirect subscribers to last viewed page after log-in
- Good way to block users within a multisite setup without deleting them?
- wordpress disable login for unverified user
- Problem with automatic role change through cron job
- How can I allow an User to publish only 5 posts per month?
- Is possible to allow user to login with different role?
- Where are $current_user->allcaps set?
- User can not login
- WordPress Login Customization for External Authentication
- Multi-site User Sessions
- Does wordpress support natively the concept of logging-in users? (not admins, but users of the website)
- Is there any action /filter hook I can use to disable login for some user role?
- How to check User Role and redirect to specific page according to Role when login in WordPress?
- Display video on homepage for users who have not logged in
- Can I Create a Second Admin Level User Role?
- How can i login with user’s password in WordPress being an admin?
- Check if user is logged in via JS? [duplicate]
- Unique password to access a section site
- Use members from 1 site on another one
- New User Save Filter
- Can I edit the database to change a login?
- loginout function customization
- User(s) already exists show error please provide a valid username
- Privilege to recover trashed posts
- One Click Access To Users Account In WordPress?
- Using my own user table
- wp_generate_password sets password but can’t login using created password
- define two login page url
- WordPress user role with create user capability?
- add class to element if user is not logged in [closed]
- Is there a way to call via javascript if a user is logged-in on a static html file?
- Restricting wordpress login sessions for a web app
- Update user role for expired membership
- How to block specific user id in custom login form?
- How to connect wordpress user with my own APP user?
- How to change default username field after login
- The same session information for peer users on two different WordPress servers
- WP users cant reset password
- Check for empty username or password on login
- How to use url formatter with integer
- Custom User Role: Can Edit Own Page, Cannot Create New
- Specific Content on pages based on user
- WordPress install checking permissions of user id 0
- user and usermeta table not found
- throttle/limit a logged in user’s http requests to specific page on a per day basis
- Restrict Access to the User Profile
- post acces for guests / unregistered users only
- Username has been exposed
- custom login form, guide me
- view and update form only for registered users
- Redirect based on log-in status per JavaScript
- Control Category of each user can post
- Integrating Facebook Registration (and Login) on a WordPress page
- Limit user access to installing/configuring a plugin?
- How to give different user access to different people?
- How to track all users logged into a site?
- Cant edit profile from frontend
- Wordpres password as plain text in email
- WordPress password as plain text in email