Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: update_blog_public

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

Line Code
1013      } elseif ( 'public' == $pref ) {
1014           /**
1015            * Fires after the current blog's 'public' setting is updated.
1016            *
1017            * @since MU
1018            *
1019            * @param int    $blog_id Blog ID.
1020            * @param string $value   The value of blog status.
1021             */
1022           do_action( 'update_blog_public', $blog_id, $value ); // Moved here from update_blog_public().
1023      }
1024
1025      return $value;
1026 }
1027
1028 /**
1029  * Get a blog details field.
1030  *
1031  * @since MU