wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



delete_user › WordPress Action Hooks

Seit5.5.0
Veraltetn/v
do_action( 'delete_user', $id, $reassign, $user )
Parameter: (3)
  • (int) $id ID of the user to delete.
    Erforderlich: Ja
  • (int|null) $reassign ID of the user to reassign posts and links to. Default null, for no reassignment.
    Erforderlich: Ja
  • (WP_User) $user WP_User object of the user to delete.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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