network_site_new_created_user хук-событиеWP 4.4.0

Fires after a new user has been created via the network site-new.php page.


add_action( 'network_site_new_created_user', 'wp_kama_network_site_new_created_user_action' );

 * Function for `network_site_new_created_user` action-hook.
 * @param int $user_id ID of the newly created user.
 * @return void
function wp_kama_network_site_new_created_user_action( $user_id ){

	// action...
ID of the newly created user.

Список изменений

С версии 4.4.0 Введена.

Где вызывается хук

В файле: /wp-admin/network/site-new.php
wp-admin/network/site-new.php 136
do_action( 'network_site_new_created_user', $user_id );

Где используется хук в WordPress

wp-includes/ms-default-filters.php 30
add_action( 'network_site_new_created_user', 'wp_send_new_user_notifications' );