A WordPress-centric search engine for devs and theme authors



wp_revisions_to_keep ›

Since3.6.0
Deprecatedn/a
apply_filters( 'wp_revisions_to_keep', $num, $post )
Parameters: (2)
  • (int) $num Number of revisions to store.
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
Defined at:
Codex:

Filters the number of revisions to save for the given post.

Overrides the value of WP_POST_REVISIONS.





Source

return (int) apply_filters( 'wp_revisions_to_keep', $num, $post );