_update_posts_count_on_delete
_update_posts_count_on_delete ( $post_id, $post )
Parameters:- (int) post_id Post ID.
- (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 is deleted.