add_user_to_blog

add_user_to_blog

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('add_user_to_blog') is found 1 times:

  • /wp-includes/ms-functions.php line 202
    	 * @param int    $user_id User ID.
    	 * @param string $role    User role.
    	 * @param int    $blog_id Blog ID.
    	 */
    	do_action( 'add_user_to_blog', $user_id, $role, $blog_id );
    
    	clean_user_cache( $user_id );
    	wp_cache_delete( $blog_id . '_user_count', 'blog-details' );
    
    	restore_current_blog();
    
    

See this hook used in plugins: