Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/revision.php | apply_filters | 683 | /** * 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. * * Possible hook names include: * * - `wp_post_revisions_to_keep` * - `wp_page_revisions_to_keep` * * @since 5.8.0 * * @param int $num Number of revisions to store. * @param WP_Post $post Post object. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
bool | $check_for_changes | Whether to check for changes before saving a new revision. |
WP_Post | $latest_revision | The latest revision post object. |
WP_Post | $post | The post object. |