WP HOOKS
filtrod 5.6.0

wp_installed_email

Args 5Plik wp-admin/includes/upgrade.phpDokumentacja WP ↗

Opis — z kodu źródłowego

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

Parametry

ParametrTypOpis
$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. }
$user\WP_UserThe site administrator user object.
$blog_titlestringThe site title.
$blog_urlstringThe site URL.
$passwordstringThe site administrator's password. Note that a placeholder message is usually passed instead of the user's actual password.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_installed_email', 'twoja_funkcja', 10, 5 );

function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
	// Twój kod
}

Popularne w tej kategorii