apply_filters( 'wp_installed_email', array $installed_email, WP_User $user, string $blog_title, string $blog_url, string $password )
- Since
- 5.6.0
Filters the contents of the email sent to the site administrator when WordPress is installed.
Compatibility
- WordPress
- since 5.6.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$installed_emailarray- { Used to build wp_mail().
@type string $to The email address of the recipient.
@type string $subject The subject of the email.
@type string $message The content of the email.
@type string $headers Headers.
}$tostringThe email address of the recipient.$subjectstringThe subject of the email.$messagestringThe content of the email.$headersstringHeaders.
$userWP_User- The site administrator user object.
$blog_titlestring- The site title.
$blog_urlstring- The site URL.
$passwordstring- The site administrator's password. Note that a placeholder message is usually passed instead of the user's actual password.
Where this hook fires · 1
wp-admin/includes/upgrade.php:638wp_new_blog_notification()
Source code
* @param WP_User $user The site administrator user object. * @param string $blog_title The site title. * @param string $blog_url The site URL. * @param string $password The site administrator's password. Note that a placeholder message * is usually passed instead of the user's actual password. */ $installed_email = apply_filters( 'wp_installed_email', $installed_email, $user, $blog_title, $blog_url, $password ); wp_mail( $installed_email['to'], $installed_email['subject'], $installed_email['message'], $installed_email['headers']Changelog
Introduced in 5.6.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.