Uses
Uses | Description |
---|---|
wp-includes/revision.php: wp_revisions_to_keep() | Determine how many revisions to retain for a given post. |
Determine if revisions are enabled for a given post.
(WP_Post) (Required) The post object.
(bool) True if number of revisions to keep isn't zero, false otherwise.
File: wp-includes/revision.php
function wp_revisions_enabled( $post ) { return wp_revisions_to_keep( $post ) !== 0; }
Version | Description |
---|---|
3.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_revisions_enabled