wp_revisions_enabled( WP_Post $post )

Determine if revisions are enabled for a given post.


Parameters

$post

(Required) The post object.


Return

(bool) True if number of revisions to keep isn't zero, false otherwise.


Source

File: wp-includes/revision.php

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


Changelog

Changelog
Version Description
WP-3.6.0 Introduced.