Filter hook 'wpmu_signup_user_notification_email'

in WP Core File wp-includes/ms-functions.php at line 1132

View Source

wpmu_signup_user_notification_email

Filter Hook
Description
Filters the content of the notification email for new user sign-up. Content should be formatted for transmission via wp_mail().

Hook Information

File Location wp-includes/ms-functions.php View on GitHub
Hook Type Filter
Line Number 1132

Hook Parameters

Type Name Description
string $content Content of the notification email.
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_email
add_filter('wpmu_signup_user_notification_email', 'my_custom_filter', 10, 5);

function my_custom_filter($content, $user_login, $user_email, $key, $meta) {
    // Your custom filtering logic here
    return $content;
}

Source Code Context

wp-includes/ms-functions.php:1132 - How this hook is used in WordPress core
<?php
1127  		 * @param string $user_login User login name.
1128  		 * @param string $user_email User email address.
1129  		 * @param string $key        Activation key created in wpmu_signup_user().
1130  		 * @param array  $meta       Signup meta data. Default empty array.
1131  		 */
1132  		apply_filters(
1133  			'wpmu_signup_user_notification_email',
1134  			/* translators: New user notification email. %s: Activation URL. */
1135  			__( "To activate your user, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login." ),
1136  			$user_login,
1137  			$user_email,

PHP Documentation

<?php
/**
		 * Filters the content of the notification email for new user sign-up.
		 *
		 * Content should be formatted for transmission via wp_mail().
		 *
		 * @since MU (3.0.0)
		 *
		 * @param string $content    Content of the notification email.
		 * @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: 5
  • File: wp-includes/ms-functions.php
Related Hooks

Related hooks will be displayed here in future updates.