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

Fires after a new user has been created.

Использование

add_action( 'edit_user_created_user', 'wp_kama_edit_user_created_action', 10, 2 );

/**
 * Function for `edit_user_created_user` action-hook.
 * 
 * @param int|WP_Error $user_id ID of the newly created user or WP_Error on failure.
 * @param string       $notify  Type of notification that should happen. See wp_send_new_user_notifications() for more information.
 *
 * @return void
 */
function wp_kama_edit_user_created_action( $user_id, $notify ){

	// action...
}
$user_id(int|WP_Error)
ID of the newly created user or WP_Error on failure.
$notify(строка)
Type of notification that should happen. See wp_send_new_user_notifications() for more information.

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

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

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

edit_user()
edit_user_created_user
wp-admin/includes/user.php 241
do_action( 'edit_user_created_user', $user_id, $notify );

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

wp-includes/default-filters.php 501
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );