07385 616 522
Call Us
07385 616 522
Notifications
Clear all

wpda_user_unlocked

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

This action is fired when an automation or administrator removes the suspension from a user account. It passes $user (the user who is being unlocked), $server (the server #ID) and $current_user (the user who removed the suspension or "WPDA" if it was automated)

Example:

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

function my_function($user, $server, $current_user){
    echo "The user {$user} was unsuspended from server #{$server} by: {$current_user}";
}

 

Quote
Topic starter Posted : 16/01/2024 9:53 pm
Share: