A WordPress-centric search engine for devs and theme authors



delete_user ›

Since5.5.0
Deprecatedn/a
do_action( 'delete_user', $id, $reassign, $user )
Parameters: (3)
  • (int) $id ID of the user to delete.
    Required: Yes
  • (int|null) $reassign ID of the user to reassign posts and links to. Default null, for no reassignment.
    Required: Yes
  • (WP_User) $user WP_User object of the user to delete.
    Required: Yes
Defined at:
Codex:

Fires immediately before a user is deleted from the database.





Source

do_action( 'delete_user', $id, $reassign, $user );