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