wpmu_welcome_notification

过滤钩子


apply_filters( 'wpmu_welcome_notification', $blog_id, $user_id, $password, $title, $meta )
参数
  • (int|false)
    $blog_id
    Site ID, or false to prevent the email from sending.
    Required:
  • (int)
    $user_id
    User ID of the site administrator.
    Required:
  • (string)
    $password
    User password, or “N/A” if the user account is not new.
    Required:
  • (string)
    $title
    Site title.
    Required:
  • (array)
    $meta
    Signup meta data. By default, contains the requested privacy setting and lang_id.
    Required:
定义位置
  • wp-includes/ms-functions.php
    , line 1605
引入
MU (3.0.0)
弃用

Filters whether to bypass the welcome email sent to the site administrator after site activation.

Returning false disables the welcome email.

if ( ! apply_filters( 'wpmu_welcome_notification', $blog_id, $user_id, $password, $title, $meta ) ) {