refresh_blog_details() WordPress Function

The refresh_blog_details() function is used to retrieve the latest blog details from the WordPress database. This function is useful for when you want to display the most up-to-date information on your blog.

refresh_blog_details( int $blog_id ) #

Clear the blog details cache.


Parameters

$blog_id

(int)(Optional) Blog ID. Defaults to current blog.


Top ↑

Source

File: wp-includes/ms-blogs.php

function refresh_blog_details( $blog_id = 0 ) {
	$blog_id = (int) $blog_id;
	if ( ! $blog_id ) {
		$blog_id = get_current_blog_id();
	}

	clean_blog_cache( $blog_id );
}


Top ↑

Changelog

Changelog
VersionDescription
MU (3.0.0)Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.