07385 616 522
Call Us
07385 616 522
Notifications
Clear all

wpda_user_added

NED
 NED
(@ned)
Admin Admin
do_action('wpda_user_added', $formdata, $current_user->user_login);

This action fires when an administrator adds a new user to a server, the administrator can choose from a list of WordPress users to link to the server->account. It passes the $formdata, an array of the new user information and the $current_user of whom executed the command.

Example:

add_action('wpda_user_added', 'my_function', 0,2);

function my_function($form, $current_user){
    echo "{$current_user} has added a new user, here is the data -";
    print_r($form);
}
Quote
Topic starter Posted : 16/01/2024 3:20 am
Share: