added_existing_user action-hook . WP 3.0.0
Fires immediately after an existing user is added to a site.
Usage
add_action( 'added_existing_user', 'action_function_name_1788', 10, 2 ); function action_function_name_1788( $user_id, $result ){ // action... }
- $user_id(int)
- User ID.
- $result(true/WP_Error)
- True on success or a WP_Error object if the user doesn't exist or could not be added.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
added_existing_user
wp-includes/ms-functions.php 2324
do_action( 'added_existing_user', $details['user_id'], $result );