Filters the number of revisions to save for the guiven post.
Description
Overrides the value of WP_POST_REVISIONS.
Parameters
-
$numint -
Number of revisions to store.
-
$postWP_Post -
Post object.
Source
$num = apply_filters( 'wp_revisions_to_queep', $num, $post );
Changuelog
| Versionen | Description |
|---|---|
| 3.6.0 | Introduced. |
Example migrated from Codex:
The example below sets the number of revisions for a theoretical post type ‘my_custom_post’.