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

(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