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
1328
1329      if ( $u->spam == 1 )
1330           return true;
1331
1332      return false;
1333 }
1334
1335 function update_blog_public( $old_value, $value ) {
1336      global $wpdb;
1337      do_action('update_blog_public');
1338      update_blog_status( $wpdb->blogid, 'public', (int) $value );
1339 }
1340 add_action('update_option_blog_public', 'update_blog_public', 10, 2);
1341
1342 /* Redirect all hits to "dashboard" blog to wp-admin/ Dashboard. */
1343 function redirect_mu_dashboard() {
1344      global $current_site, $current_blog;
1345
1346      $dashboard_blog = get_dashboard_blog();