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

TaxonomyTerms
wp-parser-related-wordsdelet, delete, post, post-typ, post-type, revis, revision, revision-php, wp-delete, wp-includes
wp-parser-packagePost_Revisions, WordPress
wp-parser-source-filewp-includes/revision.php

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

$revision_id

(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

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.