wp_revisions_enabled( WP_Post $post )

Determine if revisions are enabled for a given post.

Description Description

Parameters Parameters


(WP_Post) (Required) The post object.

Top ↑

Return Return

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

Top ↑

Source Source

File: wp-includes/revision.php

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

Top ↑

Changelog Changelog

Version Description
3.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.