WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
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. |