delete_site_email_content
Filters the text for the email sent to the site admin when a request to delete a site in a Multisite network is submitted.
The following strings have a special meaning and will get replaced dynamically:
###USERNAME###The current user's username.###URL_DELETE###The link to click on to confirm the site deletion.###SITENAME###The name of the site.###SITEURL###The URL to the site.
Usage
add_filter( 'delete_site_email_content', 'wp_kama_delete_site_email_content_filter' );
/**
* Function for `delete_site_email_content` filter-hook.
*
* @param string $content The email text.
*
* @return string
*/
function wp_kama_delete_site_email_content_filter( $content ){
// filter...
return $content;
}
- $content(string)
- The email text.
Changelog
| Since 3.0.0 | Introduced. |
Where the hook is called
In file: /wp-admin/ms-delete-site.php
delete_site_email_content
wp-admin/ms-delete-site.php 89
$content = apply_filters( 'delete_site_email_content', $content );