wp_revisions_enabled( WP_Post $post )
Determine if revisions are enabled for a given post.
Description Description
Parameters Parameters
- $post
-
(WP_Post) (Required) The post object.
Return Return
(bool) True if number of revisions to keep isn't zero, false otherwise.
Source Source
File: wp-includes/revision.php
function wp_revisions_enabled( $post ) { return wp_revisions_to_keep( $post ) !== 0; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |