wp_is_post_revision( int|WP_Post $post )

Determines if the specified post is a revision.

7 related functions found for: wp_is_post_revision

Top ↑

Related terms found for this post

wp-parser-related-wordsexist, is, post, post-typ, post-type, revis, revision, revision-php, wp-includes, wp-is
wp-parser-packagePost_Revisions, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • exist
  • is
  • post
  • Post_Revisions
  • post-typ
  • post-type
  • revis
  • revision
  • revision-php
  • wp-includes
  • wp-includes/revision.php
  • wp-is

Top ↑

Description Description

Top ↑

Parameters Parameters


(int|WP_Post) (Required) Post ID or post object.

Top ↑

Return Return

(false|int) False if not a revision, ID of revision's parent otherwise.

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.