wpmu_signup_user_notification_subject
Filters the subject of the notification email of new user signup.
Usage
add_filter( 'wpmu_signup_user_notification_subject', 'wp_kama_wpmu_signup_user_notification_subject_filter', 10, 5 ); /** * Function for `wpmu_signup_user_notification_subject` filter-hook. * * @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 $meta * * @return string */ function wp_kama_wpmu_signup_user_notification_subject_filter( $subject, $user_login, $user_email, $key, $meta ){ // filter... return $subject; }
- $subject(string)
- Subject of the notification email.
- $user_login(string)
- User login name.
- $user_email(string)
- User email address.
- $key(string)
- Activation key created in wpmu_signup_user().
- $meta
- -
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
wpmu_signup_user_notification_subject
wp-includes/ms-functions.php 1125-1133
apply_filters( 'wpmu_signup_user_notification_subject', /* translators: New user notification email subject. 1: Network title, 2: New user login. */ _x( '[%1$s] Activate %2$s', 'New user notification email subject' ), $user_login, $user_email, $key, $meta ),