wp_delete_post_revision( int|WP_Post $revision_id )

Deletes a revision.

16 related functions found for: wp_delete_post_revision

Top ↑

Related terms found for this post

wp-parser-related-wordsdelet, delete, post, post-typ, post-type, revis, revision, revision-php, wp-delete, wp-includes
wp-parser-packagePost_Revisions, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • delet
  • delete
  • post
  • Post_Revisions
  • post-typ
  • post-type
  • revis
  • revision
  • revision-php
  • wp-delete
  • wp-includes
  • wp-includes/revision.php

Top ↑

Description Description

Deletes the row from the posts table corresponding to the specified revision.

Top ↑

Parameters Parameters


(int|WP_Post) (Required) Revision ID or revision object.

Top ↑

Return Return

(array|false|WP_Post|WP_Error|null) Null or WP_Error if error, deleted post if success.

Top ↑

Source Source

File: wp-includes/revision.php


Top ↑

Changelog Changelog

Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.