Core Function
View Source on Trac ↗ _update_posts_count_on_delete()
_update_posts_count_on_delete( mixed $post_id, mixed $post ) Handler for updating the current site's posts count when a post is deleted.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $post_id int | Post ID. Required |
| $post WP_Post | Post object. Required |
Return Value
(void)
No return value description available.
Function Information
Since Version
4.0.0
Source File
wp-includes/ms-blogs.php
Advertisement