WPDev.one
Core Function
View Source on Trac ↗

_update_posts_count_on_transition_post_status()

_update_posts_count_on_transition_post_status( mixed $new_status, mixed $old_status, mixed $post = null )

Handler for updating the current site's posts count when a post status changes.

Parameters 2 required

Name / Type Description
$new_status
string

The status the post is changing to.

Required
$old_status
string

The status the post is changing from.

Required
$post
WP_Post

Post object

Return Value

(void)
No return value description available.

Function Information

Since Version
4.0.0
Source File
wp-includes/ms-blogs.php
Advertisement