_update_posts_count_on_delete

Advertisement

Summery Summery

Handler for updating the current site’s posts count when a post is deleted.

Syntax Syntax

_update_posts_count_on_delete( int $post_id )

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

Changelog
Version Description
4.0.0 Introduced.

Advertisement

Leave a Reply