Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: make_ham_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
325                do_action( 'make_spam_blog', $blog_id );
326           } else {
327                /**
328                 * Fires when the 'spam' status is removed from a blog.
329                 *
330                 * @since MU (3.0.0)
331                 *
332                 * @param int $blog_id Blog ID.
333                 */
334                do_action( 'make_ham_blog', $blog_id );
335           }
336      }
337
338      // If mature status changed, issue actions.
339      if ( $details['mature'] != $current_details['mature'] ) {
340           if ( $details['mature'] == 1 ) {
341                /**
342                 * Fires when the 'mature' status is added to a blog.
343                 *
 
Line Code
1020
1021      clean_blog_cache( $blog_id );
1022
1023      if ( 'spam' == $pref ) {
1024           if ( $value == 1 ) {
1025                /** This filter is documented in wp-includes/ms-blogs.php */
1026                do_action( 'make_spam_blog', $blog_id );
1027           } else {
1028                /** This filter is documented in wp-includes/ms-blogs.php */
1029                do_action( 'make_ham_blog', $blog_id );
1030           }
1031      } elseif ( 'mature' == $pref ) {
1032           if ( $value == 1 ) {
1033                /** This filter is documented in wp-includes/ms-blogs.php */
1034                do_action( 'mature_blog', $blog_id );
1035           } else {
1036                /** This filter is documented in wp-includes/ms-blogs.php */
1037                do_action( 'unmature_blog', $blog_id );
1038           }