wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



delete_user › Les Actions WordPress

Depuis5.5.0
Dépréciéen/a
do_action( 'delete_user', $id, $reassign, $user )
Paramètres: (3)
  • (int) $id ID of the user to delete.
    Requis: Oui
  • (int|null) $reassign ID of the user to reassign posts and links to. Default null, for no reassignment.
    Requis: Oui
  • (WP_User) $user WP_User object of the user to delete.
    Requis: Oui
Défini(e) dans:
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.





Source

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