07385 616 522
Call Us
07385 616 522
Notifications
Clear all

wpda_deleted_user

NED
 NED
(@ned)
Admin Admin
do_action('wpda_deleted_user', $user, $server, $current_user->user_login);

This hook fires when an administrator deletes a user from the server. It returns $user, the username being deleted, $server, the server ID of which the account is being removed and the $current_user of whom deleted the account.

Example:

add_action('wpda_deleted_user', 'my_function', 0, 3);

function my_function($user, $server, $current_user){
    echo "{$current_user} has deleted the account {$user} from server #{$server}";
}
Quote
Topic starter Posted : 16/01/2024 3:14 am
Share: