wp_get_post_revision


wp_get_post_revision ( $post, $output = OBJECT, $filter = 'raw' )

Parameters:
  • (int|WP_Post) $post The post ID or object.
  • (string) $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to a WP_Post object, an associative array, or a numeric array, respectively. Default OBJECT.
  • (string) $filter Optional sanitation filter. See sanitize_post().
Returns:
  • (WP_Post|array|null) WP_Post (or array) on success, or null on failure.
Defined at:

Description

Gets a post revision.

Related Functions

wp_get_post_revisions, wp_save_post_revision, wp_delete_post_revision, _wp_put_post_revision, wp_is_post_revision

Top Google Results

User discussions

wpseek mobile