wp_get_post_revisions
wp_get_post_revisions ( $post_id = 0, $args = null )
Parameters:- (int|WP_Post) post_id Optional. Post ID or WP_Post object. Default is global `$post`.
- (array|null) args Optional. Arguments for retrieving post revisions. Default null.
See:Returns:- (array) An array of revisions, or an empty array if none.
Defined at: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Returns all revisions of specified post.