wp_get_post_revisions( int|WP_Post $post, array|null $args = null )
Returns all revisions of specified post.
Description
See also
Parameters
- $post
-
(Optional) Post ID or WP_Post object. Default is global
$post
. - $args
-
(Optional) Arguments for retrieving post revisions.
Default value: null
Return
(WP_Post[]|int[]) Array of revision objects or IDs, or an empty array if none.
Source
File: wp-includes/revision.php
Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |