Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: make_spam_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
336      if ( $details['spam'] != $current_details['spam'] ) {
337           if ( $details['spam'] == 1 ) {
338                /**
339                 * Fires when the blog status is changed to 'spam'.
340                 *
341                 * @since MU
342                 *
343                 * @param int $blog_id Blog ID.
344                 */
345                do_action( 'make_spam_blog', $blog_id );
346           } else {
347                /**
348                 * Fires when the blog status is changed to 'ham'.
349                 *
350                 * @since MU
351                 *
352                 * @param int $blog_id Blog ID.
353                 */
354                do_action( 'make_ham_blog', $blog_id );
 
Line Code
968
969      if ( false === $result )
970           return false;
971
972      refresh_blog_details( $blog_id );
973
974      if ( 'spam' == $pref ) {
975           if ( $value == 1 ) {
976                /** This filter is documented in wp-includes/ms-blogs.php */
977                do_action( 'make_spam_blog', $blog_id );
978           } else {
979                /** This filter is documented in wp-includes/ms-blogs.php */
980                do_action( 'make_ham_blog', $blog_id );
981           }
982      } elseif ( 'mature' == $pref ) {
983           if ( $value == 1 ) {
984                /** This filter is documented in wp-includes/ms-blogs.php */
985                do_action( 'mature_blog', $blog_id );
986           } else {