Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: delete_site_email_content

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
33 screen_icon();
34 echo '<h2>' . esc_html( $title ) . '</h2>';
36 if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_POST['confirmdelete'] ) && $_POST['confirmdelete'] == '1' ) {
37      $hash = wp_generate_password( 20, false );
38      update_option( 'delete_blog_hash', $hash );
40      $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) );
42      $content = apply_filters( 'delete_site_email_content', __( "Dear User,
43 You recently clicked the 'Delete Site' link on your site and filled in a
44 form on that page.
45 If you really want to delete your site, click the link below. You will not
46 be asked to confirm again so only click this link if you are absolutely certain:
47 ###URL_DELETE###
49 If you delete your site, please consider opening a new site here
50 some time in the future! (But remember your current site and username
51 are gone forever.)