Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: refresh_blog_details

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
247      $blog_id = (int) $blog_id;
248      $details = get_blog_details( $blog_id, false );
249
250      wp_cache_delete( $blog_id , 'blog-details' );
251      wp_cache_delete( $blog_id . 'short' , 'blog-details' );
252      wp_cache_delete( md5( $details->domain . $details->path )  , 'blog-lookup' );
253      wp_cache_delete( 'current_blog_' . $details->domain, 'site-options' );
254      wp_cache_delete( 'current_blog_' . $details->domain . $details->path, 'site-options' );
255
256      do_action( 'refresh_blog_details', $blog_id );
257 }
258
259 /**
260  * Update the details for a blog. Updates the blogs table for a given blog id.
261  *
262  * @since MU
263  *
264  * @param int $blog_id Blog ID
265  * @param array $details Array of details keyed by blogs table field names.