wphooks.info - delete_site_email_content

delete_site_email_content

The hook occurs in the following file:

wp-admin/ms-delete-site.php:
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Thanks for using the site,
Webmaster
###SITE_NAME###" );
	/**
	 * Filters the email content sent when a site in a Multisite network is deleted.
	 *
	 * @since 3.0.0
	 *
	 * @param string $content The email content that will be sent to the user who deleted a site in a Multisite network.
	 */
	$content = apply_filters( 'delete_site_email_content', $content );

	$content = str_replace( '###USERNAME###', $user->user_login, $content );
	$content = str_replace( '###URL_DELETE###', $url_delete, $content );
	$content = str_replace( '###SITE_NAME###', get_network()->site_name, $content );

	wp_mail( get_option( 'admin_email' ), "[ " . wp_specialchars_decode( get_option( 'blogname' ) ) . " ] ".__( 'Delete My Site' ), $content );

	if ( $switched_locale ) {
		restore_previous_locale();