WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
37 |
|
38 | if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_POST['confirmdelete'] ) && $_POST['confirmdelete'] == '1' ) { |
39 | check_admin_referer( 'delete-blog' ); |
40 |
|
41 | $hash = wp_generate_password( 20, false ); |
42 | update_option( 'delete_blog_hash', $hash ); |
43 |
|
44 | $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) ); |
45 |
|
46 | $content = apply_filters( 'delete_site_email_content', __( "Dear User, |
47 | You recently clicked the 'Delete Site' link on your site and filled in a |
48 | form on that page. |
49 | If you really want to delete your site, click the link below. You will not |
50 | be asked to confirm again so only click this link if you are absolutely certain: |
51 | ###URL_DELETE### |
52 |
|
53 | If you delete your site, please consider opening a new site here |
54 | some time in the future! (But remember your current site and username |
55 | are gone forever.) |