wp_installed_email WordPress Filter Hook

The wp_installed_email hook allows you to specify an email address to receive notification when a new WordPress installation is complete. This is useful for keeping track of multiple WordPress installations.

apply_filters( 'wp_installed_email', array $installed_email, WP_User $user, string $blog_title, string $blog_url, string $password ) #

Filters the contents of the email sent to the site administrator when WordPress is installed.


Parameters

$installed_email

(array)Used to build wp_mail().

  • 'to'
    (string) The email address of the recipient.
  • 'subject'
    (string) The subject of the email.
  • 'message'
    (string) The content of the email.
  • 'headers'
    (string) Headers.

$user

(WP_User)The site administrator user object.

$blog_title

(string)The site title.

$blog_url

(string)The site URL.

$password

(string)The site administrator's password. Note that a placeholder message is usually passed instead of the user's actual password.


Top ↑

Source

File: wp-admin/includes/upgrade.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.