_update_blog_date_on_post_delete

Advertisement

Summery Summery

Handler for updating the current site’s last updated date when a published post is deleted.

Syntax Syntax

_update_blog_date_on_post_delete( int $post_id )

Parameters Parameters

$post_id

(Required) Post ID

Source Source

File: wp-includes/ms-blogs.php

	}

	if ( 'publish' !== $new_status && 'publish' !== $old_status ) {
		return;
	}

	// Post was freshly published, published post was saved, or published post was unpublished.

	wpmu_update_blogs_date();
}

/**
 * Handler for updating the current site's last updated date when a published
 * post is deleted.

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply