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:

Description

Returns all revisions of specified post.

Related Functions

wp_get_post_revision, wp_list_post_revisions, _wp_put_post_revision, wp_delete_post_revision, wp_save_post_revision

Top Google Results

User discussions

wpseek mobile