wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_revisions_enabled › WordPress Function

Since3.6.0
Deprecatedn/a
wp_revisions_enabled ( $post )
Parameters:
  • (WP_Post) $post The post object.
    Required: Yes
Returns:
  • (bool) True if number of revisions to keep isn't zero, false otherwise.
Defined at:
Codex:

Determines whether revisions are enabled for a given post.



Source

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