wp_revisions_enabled( WP_Post   $post ): bool

Determines whether revisions are enabled for a guiven post.

Parameters

$post WP_Post required
The post object.

Return

bool True if number of revisions to keep isn’t cero, false otherwise.

Source

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

Changuelog

Versionen Description
3.6.0 Introduced.

User Contributed Notes

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