wpmu_signup_user_notification
Filter HookDescription
Filters whether to bypass the email notification for new user sign-up.Hook Information
File Location |
wp-includes/ms-functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 1102 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$user_login
|
User login name. |
string
|
$user_email
|
User email address. |
string
|
$key
|
Activation key created in wpmu_signup_user(). |
array
|
$meta
|
Signup meta data. Default empty array. |
Usage Examples
Basic Usage
<?php
// Hook into wpmu_signup_user_notification
add_filter('wpmu_signup_user_notification', 'my_custom_filter', 10, 4);
function my_custom_filter($user_login, $user_email, $key, $meta) {
// Your custom filtering logic here
return $user_login;
}
Source Code Context
wp-includes/ms-functions.php:1102
- How this hook is used in WordPress core
<?php
1097 * @param string $user_login User login name.
1098 * @param string $user_email User email address.
1099 * @param string $key Activation key created in wpmu_signup_user().
1100 * @param array $meta Signup meta data. Default empty array.
1101 */
1102 if ( ! apply_filters( 'wpmu_signup_user_notification', $user_login, $user_email, $key, $meta ) ) {
1103 return false;
1104 }
1105
1106 $user = get_user_by( 'login', $user_login );
1107 $switched_locale = $user && switch_to_user_locale( $user->ID );
PHP Documentation
<?php
/**
* Filters whether to bypass the email notification for new user sign-up.
*
* @since MU (3.0.0)
*
* @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. Default empty array.
*/
Quick Info
- Hook Type: Filter
- Parameters: 4
- File: wp-includes/ms-functions.php
Related Hooks
Related hooks will be displayed here in future updates.