WordPress at a glance
function is not described

wp_revisions_enabled() WP 3.6.0

Determine if revisions are enabled for a given post.

No Hooks.


true/false. True if number of revisions to keep isn't zero, false otherwise.


wp_revisions_enabled( $post );
$post(WP_Post) (required)
The post object.

Code of wp revisions enabled: wp-includes/revision.php VER 5.1.1

function wp_revisions_enabled( $post ) {
	return wp_revisions_to_keep( $post ) !== 0;