apply_filters( 'delete_site_email_content', string $content )
- Since
- 3.0.0
Filters the text for the email sent to the site admin when a request to delete a site in a Multisite network is submitted.
Description
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.
Compatibility
- WordPress
- since 3.0.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
$contentstring- The email text.
Where this hook fires · 1
wp-admin/ms-delete-site.php:89file scope
Source code
* - `###SITEURL###` The URL to the site. * * @since 3.0.0 * * @param string $content The email text. */ $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( '###SITENAME###', get_network()->site_name, $content ); $content = str_replace( '###SITEURL###', network_home_url(), $content );Changelog
Introduced in 3.0.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.