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.
This hook occurs 2 times in this file.
| Line | Code | 
|---|---|
| 394 |                do_action( 'make_delete_blog', $blog_id ); | 
| 395 |           } else { | 
| 396 |                /** | 
| 397 |                 * Fires when the 'deleted' status is removed from a blog. | 
| 398 |                 * | 
| 399 |                 * @since 3.5.0 | 
| 400 |                 * | 
| 401 |                 * @param int $blog_id Blog ID. | 
| 402 |                 */ | 
| 403 |                do_action( 'make_undelete_blog', $blog_id ); | 
| 404 |           } | 
| 405 |      } | 
| 406 |  | 
| 407 |      if ( isset( $details['public'] ) ) { | 
| 408 |           switch_to_blog( $blog_id ); | 
| 409 |           update_option( 'blog_public', $details['public'] ); | 
| 410 |           restore_current_blog(); | 
| 411 |      } | 
| 412 |  | 
| Line | Code | 
| 1044 |                /** This filter is documented in wp-includes/ms-blogs.php */ | 
| 1045 |                do_action( 'unarchive_blog', $blog_id ); | 
| 1046 |           } | 
| 1047 |      } elseif ( 'deleted' == $pref ) { | 
| 1048 |           if ( $value == 1 ) { | 
| 1049 |                /** This filter is documented in wp-includes/ms-blogs.php */ | 
| 1050 |                do_action( 'make_delete_blog', $blog_id ); | 
| 1051 |           } else { | 
| 1052 |                /** This filter is documented in wp-includes/ms-blogs.php */ | 
| 1053 |                do_action( 'make_undelete_blog', $blog_id ); | 
| 1054 |           } | 
| 1055 |      } elseif ( 'public' == $pref ) { | 
| 1056 |           /** | 
| 1057 |            * Fires after the current blog's 'public' setting is updated. | 
| 1058 |            * | 
| 1059 |            * @since MU (3.0.0) | 
| 1060 |            * | 
| 1061 |            * @param int    $blog_id Blog ID. | 
| 1062 |            * @param string $value   The value of blog status. |