WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/update posts count

This page is marked as incomplete. You can help Codex by expanding it.

Contents

Description

Update a blog's post count.

Usage

<?php update_posts_count$deprecated ); ?>

Parameters

$deprecated
(string) (optional) do not pass a parameter to this function
Default: empty string

Return Value

This function does not return a value

Examples


Notes

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_blog_details(). This function is called when posts are published to make sure the count stays current.

Change Log

Since: MU

Source File

update_posts_count() is located in wp-includes/ms-functions.php

Related

 

See also index of Function Reference and index of Template Tags.