wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



delete_user › WordPress Action Hooks

Da5.5.0
Deprecaton/a
do_action( 'delete_user', $id, $reassign, $user )
Parametri: (3)
  • (int) $id ID of the user to delete.
    Richiesto:
  • (int|null) $reassign ID of the user to reassign posts and links to. Default null, for no reassignment.
    Richiesto:
  • (WP_User) $user WP_User object of the user to delete.
    Richiesto:
Definito a:
Codex:

Fires immediately before a user is deleted from the site.

Note that on a Multisite installation the user only gets removed from the site and does not get deleted from the database.





Sorgenti

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