wp_list_post_revisions
wp_list_post_revisions ( $post_id = 0, $type = 'all' )
Parameters:- (int|WP_Post) post_id 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
Display 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.