Core Function
View Source on Trac ↗ wp_delete_user()
wp_delete_user( mixed $id, mixed $reassign = null ) Delete user and optionally reassign posts and links to another user.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $id int | User ID. Required |
| $reassign int | Optional. Reassign posts and links to new User ID. |
Return Value
(bool)
True when finished.
Function Information
Since Version
2.0.0
Source File
wp-admin/includes/user.php
Advertisement