Filter hook 'delete_site_email_content'

in WP Core File wp-admin/ms-delete-site.php at line 82

View Source

delete_site_email_content

Filter Hook
Description
Filters the text for the email sent to the site admin when a request to delete a site in a Multisite network is submitted.

Hook Information

File Location wp-admin/ms-delete-site.php View on GitHub
Hook Type Filter
Line Number 82

Hook Parameters

Type Name Description
string $content The email text.

Usage Examples

Basic Usage
<?php
// Hook into delete_site_email_content
add_filter('delete_site_email_content', 'my_custom_filter', 10, 1);

function my_custom_filter($content) {
    // Your custom filtering logic here
    return $content;
}

Source Code Context

wp-admin/ms-delete-site.php:82 - How this hook is used in WordPress core
<?php
  77  	 *
  78  	 * @since 3.0.0
  79  	 *
  80  	 * @param string $content The email text.
  81  	 */
  82  	$content = apply_filters( 'delete_site_email_content', $content );
  83  
  84  	$content = str_replace( '###USERNAME###', $user->user_login, $content );
  85  	$content = str_replace( '###URL_DELETE###', $url_delete, $content );
  86  	$content = str_replace( '###SITENAME###', get_network()->site_name, $content );
  87  	$content = str_replace( '###SITEURL###', network_home_url(), $content );

PHP Documentation

<?php
/**
	 * Filters the text for the email sent to the site admin when a request to delete a site in a Multisite network is submitted.
	 *
	 * @since 3.0.0
	 *
	 * @param string $content The email text.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/ms-delete-site.php
Related Hooks

Related hooks will be displayed here in future updates.