wp_delete_post_revision
wp_delete_post_revision ( $revision )
Parameters:- (int|WP_Post) revision Revision ID or revision object.
Returns:- (WP_Post|false|null) Null or false if error, deleted post object if success.
Defined at: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Deletes a revision.Deletes the row from the posts table corresponding to the specified revision.