wpmu_signup_user_notification хук-фильтрWP 3.0.0

Filters whether to bypass the email notification for new user sign-up.

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

add_filter( 'wpmu_signup_user_notification', 'wp_kama_wpmu_signup_user_notification_filter', 10, 4 );

/**
 * Function for `wpmu_signup_user_notification` filter-hook.
 * 
 * @param string $user_login User login name.
 * @param string $user_email User email address.
 * @param string $key        Activation key created in wpmu_signup_user().
 * @param array  $meta       Signup meta data.
 *
 * @return string
 */
function wp_kama_wpmu_signup_user_notification_filter( $user_login, $user_email, $key, $meta ){

	// filter...
	return $user_login;
}
$user_login(строка)
User login name.
$user_email(строка)
User email address.
$key(строка)
Activation key created in wpmu_signup_user().
$meta(массив)
Signup meta data.
По умолчанию: empty array

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

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

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

wpmu_signup_user_notification()
wpmu_signup_user_notification
wp-includes/ms-functions.php 1071
if ( ! apply_filters( 'wpmu_signup_user_notification', $user_login, $user_email, $key, $meta ) ) {

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

wp-admin/user-new.php 224
add_filter( 'wpmu_signup_user_notification', '__return_false' ); // Disable confirmation email.