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:

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.

Related Functions

wp_is_post_revision, wp_get_post_revisions, wp_get_post_revision, wp_save_post_revision, wp_delete_post_revision

Top Google Results

User discussions

wpseek mobile