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:

Description

Returns all revisions of specified post.

Related Functions

wp_get_post_revision, wp_get_post_revisions_url, wp_list_post_revisions, _wp_put_post_revision, wp_delete_post_revision

Top Google Results

User discussions

wpseek mobile