Opened 2 years ago
Closed 2 years ago
#57068 closed feature request (worksforme)
New WordPress Site email should be configurable
Reported by: | 123host | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Keywords: | close | |
Focuses: | Cc: |
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
@
2 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
@
2 years ago
- Component changed from Upgrade/Install to Mail
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
- Version 6.1 deleted
@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!
The update_welcome_email filter can be used to modify the body of this email. I think this can be closed as worksforme.