Filter hook 'wpmu_signup_user_notification_subject'

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

View Source

wpmu_signup_user_notification_subject

Filter Hook
Description
Filters the subject of the notification email of new user signup.

Hook Information

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

Hook Parameters

Type Name Description
string $subject Subject 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_subject
add_filter('wpmu_signup_user_notification_subject', 'my_custom_filter', 10, 5);

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

Source Code Context

wp-includes/ms-functions.php:1156 - How this hook is used in WordPress core
<?php
1151  		 * @param string $user_login User login name.
1152  		 * @param string $user_email User email address.
1153  		 * @param string $key        Activation key created in wpmu_signup_user().
1154  		 * @param array  $meta       Signup meta data. Default empty array.
1155  		 */
1156  		apply_filters(
1157  			'wpmu_signup_user_notification_subject',
1158  			/* translators: New user notification email subject. 1: Network title, 2: New user login. */
1159  			_x( '[%1$s] Activate %2$s', 'New user notification email subject' ),
1160  			$user_login,
1161  			$user_email,

PHP Documentation

<?php
/**
		 * Filters the subject of the notification email of new user signup.
		 *
		 * @since MU (3.0.0)
		 *
		 * @param string $subject    Subject 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.