function update_sitemeta_cache( $site_ids ) { // Ensure this filter is hooked in even if the function is called early.
if ( !
has_filter( 'update_blog_metadata_cache', 'wp_check_site_meta_support_prefilter'
) ) { add_filter( 'update_blog_metadata_cache', 'wp_check_site_meta_support_prefilter'
);
} return update_meta_cache( 'blog',
$site_ids );
}/**
* Retrieves a list of sites matching requested arguments.
*
* @since 4.6.0
* @since 4.8.0 Introduced the 'lang_id', 'lang__in', and 'lang__not_in' parameters.
*
* @see WP_Site_Query::parse_query()
*
* @param string|array $args Optional. Array or string of arguments. See WP_Site_Query::__construct()
* for information on accepted arguments. Default empty array.
* @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',
* or the number of sites when 'count' is passed as a query var.
*/