wp_is_post_revision

Advertisement

Summery Summery

Determines if the specified post is a revision.

Syntax Syntax

wp_is_post_revision( int|WP_Post $post )

Parameters Parameters

$post

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

Return Return

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

Source Source

File: wp-includes/revision.php

		return false;
	}

	return get_post( $autosave[0] );
}

/**
 * Determines if the specified post is a revision.

Advertisement

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.