delete_user
Fires immediately before a user is deleted from the database.
Description
Parameters (1)
- 0. $array (callback) =>
array( $this, 'delete_connection_for_user' )
- The array.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'delete_user', $array );
- The following example is for adding a hook callback.
- // define the delete_user callback
- function action_delete_user( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'delete_user', 'action_delete_user', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'delete_user', 'action_delete_user', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /modules/sso.php
- add_action( 'delete_user', array( $this, 'delete_connection_for_user' ) );