wp_revisions_to_keep

wp_revisions_to_keep

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_revisions_to_keep') is found 1 times:

  • /wp-includes/revision.php line 829
    	 *
    	 * @param int     $num  Number of revisions to store.
    	 * @param WP_Post $post Post object.
    	 */
    	$num = apply_filters( 'wp_revisions_to_keep', $num, $post );
    
    	/**
    	 * 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.
    	 *
    

See this hook used in plugins: