wpmu_welcome_notification хук-фильтр . WP 3.0.0
Filters whether to bypass the welcome email sent to the site administrator after site activation.
Returning false disables the welcome email.
Использование
add_filter( 'wpmu_welcome_notification', 'filter_function_name_9580', 10, 5 ); function filter_function_name_9580( $blog_id, $user_id, $password, $title, $meta ){ // filter... return $blog_id; }
- $blog_id(число/true/false)
- Site ID.
- $user_id(число)
- User ID of the site administrator.
- $password(строка)
- User password, or "N/A" if the user account is not new.
- $title(строка)
- Site title.
- $meta(массив)
- Signup meta data. By default, contains the requested privacy setting and lang_id.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
wp-includes/ms-functions.php 1610
if ( ! apply_filters( 'wpmu_welcome_notification', $blog_id, $user_id, $password, $title, $meta ) ) {