wp_revisions_enabled

Advertisement

Summery Summery

Determine if revisions are enabled for a given post.

Syntax Syntax

wp_revisions_enabled( WP_Post $post )

Parameters Parameters

$post

(Required) The post object.

Return Return

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

Source Source

File: wp-includes/revision.php

	if ( ! $revisions ) {
		return array();
	}

Advertisement

Changelog Changelog

Changelog
Version Description
3.6.0 Introduced.

Advertisement

Leave a Reply