wpmu_activate_blog хук-событиеWP 3.0.0

Fires immediately after a site is activated.

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

add_action( 'wpmu_activate_blog', 'wp_kama_wpmu_activate_blog_action', 10, 5 );

/**
 * Function for `wpmu_activate_blog` action-hook.
 * 
 * @param int    $blog_id      Blog ID.
 * @param int    $user_id      User ID.
 * @param string $password     User password.
 * @param string $signup_title Site title.
 * @param array  $meta         Signup meta data. By default, contains the requested privacy setting and lang_id.
 *
 * @return void
 */
function wp_kama_wpmu_activate_blog_action( $blog_id, $user_id, $password, $signup_title, $meta ){

	// action...
}
$blog_id(int)
Blog ID.
$user_id(int)
User ID.
$password(строка)
User password.
$signup_title(строка)
Site title.
$meta(массив)
Signup meta data. By default, contains the requested privacy setting and lang_id.

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

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

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

wpmu_activate_signup()
wpmu_activate_blog
wp-includes/ms-functions.php 1266
do_action( 'wpmu_activate_blog', $blog_id, $user_id, $password, $signup->title, $meta );

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

wp-includes/ms-default-filters.php 41
add_action( 'wpmu_activate_blog', 'wpmu_welcome_notification', 10, 5 );