Opened 4 years ago
Closed 4 years ago
#57068 closed feature request (worksforme)
New WordPress Site email should be configurable
| Reported by: | 123host | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Version: | ||
| Severity: | normal | Keywords: | close |
| Cc: | Focuses: |
Description
I am a server administrator at a web hosting company.
When using the WP toolkit and WP is automatically installed, an email is send to the user
Your new WordPress site has been successfully set up at: https://example.com You can log in to the administrator account with the following information: Username: admin_example Password: The password you chose during installation. Log in here: https://example.com/wp-login.php We hope you enjoy your new site. Thanks! --The WordPress Team https://wordpress.org/
This is useful, but it seems obvious that a web host or perhaps a developer would like to customise this email so that it is white labelled and more personal.
A grep search shows the string "New WordPress Site" in
wp-includes/ms-functions.php
wp-admin/includes/schema.php
wp-admin/includes/upgrade.php
Change History (3)
#2
@
4 years ago
How can I modify a filter in an install before it has happened? The install happens, the email is sent straight away. What is the point of then adding a filter to modify the email?
#3
@
4 years ago
- Component Upgrade/Install → Mail
- Milestone Awaiting Review
- Resolution → worksforme
- Status new → closed
- Version 6.1
@123host In order to use this filter you need to hook into the wp_filter global inside a file that loads during the installation, usually wp-config.php. This approach is documented here for another filter that runs before plugins have a chance to hook in: https://developer.wordpress.org/reference/hooks/enable_wp_debug_mode_checks/
I'll add the same note to this filter for future reference. Cheers!
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The update_welcome_email filter can be used to modify the body of this email. I think this can be closed as worksforme.