after_signup_site хук-событие . WP 4.4.0
Fires after site signup information has been written to the database.
Использование
add_action( 'after_signup_site', 'action_function_name_5900', 10, 7 ); function action_function_name_5900( $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 | Введена. |
Где вызывается хук
after_signup_site
wp-includes/ms-functions.php 834
do_action( 'after_signup_site', $domain, $path, $title, $user, $user_email, $key, $meta );
Где используется хук в ядре WordPress
wp-includes/ms-functions.php 42
add_action( 'after_signup_site', 'wpmu_signup_blog_notification', 10, 7 );