wp_is_post_revision


wp_is_post_revision ( $post )

Parameters:
  • (int|WP_Post) $post Post ID or post object.
Returns:
  • (false|int) False if not a revision, ID of revision's parent otherwise.
Defined at:

Description

Determines if the specified post is a revision.

Related Functions

wp_list_post_revisions, wp_save_post_revision, wp_get_post_revision, _wp_put_post_revision, wp_get_post_revisions

Top Google Results

User discussions

wpseek mobile