delete_site_email_content
Filters the email content sent when a site in a Multisite network is deleted.
Description
Parameters (1)
- 0. $content (string)
- The email content that will be sent to the user who deleted a site in a Multisite network.
Usage
- To run the hook, copy the example below.
- $content = apply_filters( 'delete_site_email_content', $content );
- if ( !empty( $content ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the delete_site_email_content callback
- function filter_delete_site_email_content( $content ) {
- // make filter magic happen here...
- return $content;
- };
- // add the filter
- add_filter( 'delete_site_email_content', 'filter_delete_site_email_content', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'delete_site_email_content', 'filter_delete_site_email_content', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-admin/ms-delete-site.php
- $content = apply_filters( 'delete_site_email_content', $content );