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

Fires after a user's signup information has been written to the database.


add_action( 'after_signup_user', 'wp_kama_after_signup_user_action', 10, 4 );

 * Function for `after_signup_user` action-hook.
 * @param string $user       The user's requested login name.
 * @param string $user_email The user's email address.
 * @param string $key        The user's activation key.
 * @param array  $meta       Signup meta data.
 * @return void
function wp_kama_after_signup_user_action( $user, $user_email, $key, $meta ){

	// action...
The user's requested login name.
The user's email address.
The user's activation key.
Signup meta data.
По умолчанию: empty array

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

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

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

wp-includes/ms-functions.php 897
do_action( 'after_signup_user', $user, $user_email, $key, $meta );

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

wp-includes/ms-default-filters.php 29
add_action( 'after_signup_user', 'wpmu_signup_user_notification', 10, 4 );