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 |
|---|---|
| 33 | screen_icon(); |
| 34 | echo '<h2>' . esc_html( $title ) . '</h2>'; |
| 35 | |
| 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 ); |
| 39 | |
| 40 | $url_delete = esc_url( admin_url( 'ms-delete-site.php?h=' . $hash ) ); |
| 41 | |
| 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### |
| 48 | |
| 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.) |