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 |
|---|---|
| 414 | do_action( 'make_delete_blog', $blog_id ); |
| 415 | } else { |
| 416 | /** |
| 417 | * Fires when the blog status is changed to 'undeleted'. |
| 418 | * |
| 419 | * @since 3.5.0 |
| 420 | * |
| 421 | * @param int $blog_id Blog ID. |
| 422 | */ |
| 423 | do_action( 'make_undelete_blog', $blog_id ); |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | if ( isset( $details['public'] ) ) { |
| 428 | switch_to_blog( $blog_id ); |
| 429 | update_option( 'blog_public', $details['public'] ); |
| 430 | restore_current_blog(); |
| 431 | } |
| 432 | |
| Line | Code |
| 844 | /** This filter is documented in wp-includes/ms-blogs.php */ |
| 845 | do_action( 'unarchive_blog', $blog_id ); |
| 846 | } |
| 847 | } elseif ( 'deleted' == $pref ) { |
| 848 | if ( $value == 1 ) { |
| 849 | /** This filter is documented in wp-includes/ms-blogs.php */ |
| 850 | do_action( 'make_delete_blog', $blog_id ); |
| 851 | } else { |
| 852 | /** This filter is documented in wp-includes/ms-blogs.php */ |
| 853 | do_action( 'make_undelete_blog', $blog_id ); |
| 854 | } |
| 855 | } elseif ( 'public' == $pref ) { |
| 856 | /** |
| 857 | * Fires after the current blog's 'public' setting is updated. |
| 858 | * |
| 859 | * @since MU |
| 860 | * |
| 861 | * @param int $blog_id Blog ID. |
| 862 | * @param string $value The value of blog status. |