Determines whether revisions are enabled for a given post.
Parameters
$post
WP_Postrequired- The post object.
Source
function wp_revisions_enabled( $post ) {
return wp_revisions_to_keep( $post ) !== 0;
}
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.