edit_user_created_user
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 | Введена. |
Где вызывается хук
wp-admin/includes/user.php 247
do_action( 'edit_user_created_user', $user_id, $notify );
Где используется хук в WordPress
wp-includes/default-filters.php 507
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );