Action hook 'network_site_users_created_user'

in WP Core File wp-admin/network/site-users.php at line 88

View Source

network_site_users_created_user

Action Hook
Description
Fires after a user has been created via the network site-users.php page.

Hook Information

File Location wp-admin/network/site-users.php View on GitHub
Hook Type Action
Line Number 88

Hook Parameters

Type Name Description
int $user_id ID of the newly created user.

Usage Examples

Basic Usage
<?php
// Hook into network_site_users_created_user
add_action('network_site_users_created_user', 'my_custom_function', 10, 1);

function my_custom_function($user_id) {
    // Your custom code here
}

Source Code Context

wp-admin/network/site-users.php:88 - How this hook is used in WordPress core
<?php
  83  						 *
  84  						 * @since 4.4.0
  85  						 *
  86  						 * @param int $user_id ID of the newly created user.
  87  						 */
  88  						do_action( 'network_site_users_created_user', $user_id );
  89  					}
  90  				}
  91  			}
  92  			break;
  93  

PHP Documentation

<?php
/**
						 * Fires after a user has been created via the network site-users.php page.
						 *
						 * @since 4.4.0
						 *
						 * @param int $user_id ID of the newly created user.
						 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-admin/network/site-users.php
Related Hooks

Related hooks will be displayed here in future updates.