wp_get_post_revision


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

Parameters:
  • (int|WP_Post) post Post ID or post 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 sanitization filter. See sanitize_post(). Default 'raw'.
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_get_post_revisions_url, _wp_put_post_revision, wp_delete_post_revision, wp_save_post_revision

Top Google Results

User discussions

wpseek mobile