wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_{$post->post_type}_revisions_to_keep › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
apply_filters( "wp_{$post->post_type}_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 by its post type.

Overrides both the value of WP_POST_REVISIONS and the {@see 'wp_revisions_to_keep'} filter.

The dynamic portion of the hook name, $post->post_type, refers to the post type slug.





Source

$num = apply_filters( "wp_{$post->post_type}_revisions_to_keep", $num, $post );