update_posts_count
update_posts_count ( $deprecated = '' )
Parameters:- (string) deprecated Not used.
Defined at:Change Log: - Introduced in WordPress: —
- Deprecated in WordPress: —
Description
Updates a blog's post count.WordPress MS stores a blog's post count as an option so as
to avoid extraneous COUNTs when a blog's details are fetched
with get_site(). This function is called when posts are published
or unpublished to make sure the count stays current.