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

Fires after site signup information has been written to the database.

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

add_action( 'after_signup_site', 'wp_kama_after_signup_site_action', 10, 7 );

/**
 * Function for `after_signup_site` action-hook.
 * 
 * @param string $domain     The requested domain.
 * @param string $path       The requested path.
 * @param string $title      The requested site title.
 * @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. By default, contains the requested privacy setting and lang_id.
 *
 * @return void
 */
function wp_kama_after_signup_site_action( $domain, $path, $title, $user, $user_email, $key, $meta ){

	// action...
}
$domain(строка)
The requested domain.
$path(строка)
The requested path.
$title(строка)
The requested site title.
$user(строка)
The user's requested login name.
$user_email(строка)
The user's email address.
$key(строка)
The user's activation key.
$meta(массив)
Signup meta data. By default, contains the requested privacy setting and lang_id.

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

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

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

wpmu_signup_blog()
after_signup_site
wp-includes/ms-functions.php 829
do_action( 'after_signup_site', $domain, $path, $title, $user, $user_email, $key, $meta );

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

wp-includes/ms-default-filters.php 42
add_action( 'after_signup_site', 'wpmu_signup_blog_notification', 10, 7 );