* Filter the new user notification message. * * @param string $message The notification message. * * @return string */ public function modify_notification_message($message) { if (!empty($this->notification_message)) { $message = $this->notification_message . "\r\n\r\n" . $message; } return $message; } } if (!function_exists('wp_new_user_notification')) { Simple_User_Adding_Plugin::$can_modify_email = true; if (version_compare($wp_version, '4.3', '<')) { /** * Email login credentials to a newly-registered user. * * A new user registration notification is also sent to admin email. * * @since 2.0.0 * * @param int $user_id User ID. * @param string $plaintext_pass Optional. The user's plaintext password. Default empty. */ function wp_new_user_notification($user_id, $plaintext_pass = '') { $user = get_userdata($user_id); // The blogname option is escaped with esc_html on the way into the database in sanitize_option