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: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Gets a post revision.