_update_posts_count_on_transition_post_status
_update_posts_count_on_transition_post_status ( $new_status, $old_status, $post = null )
Parameters:- (string) new_status The status the post is changing to.
- (string) old_status The status the post is changing from.
- (WP_Post) post Post object
Defined at:Change Log: - Introduced in WordPress: 4.0.0
- Deprecated in WordPress: —
Description
Handler for updating the current site's posts count when a post status changes.