WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Difference between revisions of "Function Reference/wp revisions enabled"

m (Return)
(Added basic info about this function)
Line 1: Line 1:
 
==Description==
 
==Description==
  +
Determine if revisions are enabled for a given post.
   
 
==Parameters==
 
==Parameters==
{{Parameter|$var|TYPE|Description.}}
+
{{Parameter|$post|object|The Post object.}}
{{Parameter|$var|TYPE|Description.|optional|DEFAULT}}
 
   
 
== Return ==
 
== Return ==
{{Return||TYPE|Description.}}
+
{{Return||boolean|True if number of revisions to keep isn't zero, false otherwise.}}
   
 
== Usage ==
 
== Usage ==
Line 21: Line 22:
 
== Source File ==
 
== Source File ==
 
<!-- Need links to current source code files -->
 
<!-- Need links to current source code files -->
<tt>wp_revisions_enabled()</tt> is located in {{Trac|wp-whatever/file.php}}.
+
<tt>wp_revisions_enabled()</tt> is located in {{Trac|wp-includes/revision.php}}.
   
 
==Related==
 
==Related==
Line 29: Line 30:
   
 
{{Copyedit}}
 
{{Copyedit}}
  +
{{Stub}}

Revision as of 17:24, 6 August 2013

Description

Determine if revisions are enabled for a given post.

Parameters

$post
(object) (required) The Post object.
Default: None

Return

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

Usage

 <?php  ?> 

Example

Description text

Example code

Change Log

Source File

wp_revisions_enabled() is located in wp-includes/revision.php.

Related

Function ref links

This article is marked as in need of editing. You can help Codex by editing it.
This page is marked as incomplete. You can help Codex by expanding it.