Summery Summery
Handler for updating the current site’s posts count when a post is deleted.
Syntax Syntax
Parameters Parameters
- $post_id
-
(Required) Post ID.
Source Source
File: wp-includes/ms-blogs.php
$post_type_obj = get_post_type_object( $post->post_type );
if ( ! $post_type_obj || ! $post_type_obj->public ) {
return;
}
if ( 'publish' !== $post->post_status ) {
return;
}
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |