Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: make_delete_blog

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

This hook occurs 2 times in this file.

Line Code
385      if ( $details['deleted'] != $current_details['deleted'] ) {
386           if ( $details['deleted'] == 1 ) {
387                /**
388                 * Fires when the 'deleted' status is added to a blog.
389                 *
390                 * @since 3.5.0
391                 *
392                 * @param int $blog_id Blog ID.
393                 */
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 );
 
Line Code
1041                /** This filter is documented in wp-includes/ms-blogs.php */
1042                do_action( 'archive_blog', $blog_id );
1043           } else {
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)