wp_list_post_revisions
wp_list_post_revisions ( $post = 0, $type = 'all' )
Parameters:- (int|WP_Post) post Optional. Post ID or WP_Post object. Default is global $post.
- (string) type 'all' (default), 'revision' or 'autosave'
Defined at: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Displays a list of a post's revisions.Can output either a UL with edit links or a TABLE with diff interface, and
restore action links.