wp_revisions_to_keep


wp_revisions_to_keep ( $post )

Parameters:
  • (WP_Post) $post The post object.
Returns:
  • (int) The number of revisions to keep.
Defined at:

Description

Determine how many revisions to retain for a given post.

By default, an infinite number of revisions are kept.

The constant WP_POST_REVISIONS can be set in wp-config to specify the limit of revisions to keep.

Related Functions

wp_revisions_enabled, wp_post_revision_title, wp_get_session_token, _wp_upgrade_revisions_of_post, wp_print_revision_templates

Top Google Results

User discussions

wpseek mobile