Home/Hooks/add_user_to_blog
ACTION

add_user_to_blog

Fires immediately after a user is added to a site.

wp-includes/ms-functions.php
Line 211
3 Parameters
View Source

Usage

add_action( 'add_user_to_blog', 'your_callback_function', 10, 3 );

Action Callback:

function your_callback_function( $user_id, $role, $blog_id ) {
    // Your code here
    
}

Parameters

$user_id

Parameter 1

$role

Parameter 2

$blog_id

Parameter 3

⚡ Action Hook

Action hooks allow you to insert custom code at specific points during WordPress execution. Actions do not return any values.