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