delete_site_email_content хук-фильтрWP 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.

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.

Использование

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(строка)
The email text.

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

В файле: /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 );

Где используется хук в WordPress

Использование не найдено.