wp_{$post->post_type}_revisions_to_keep

wp_{$post->post_type}_revisions_to_keep

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_{$post->post_type}_revisions_to_keep') is found 1 times:

  • /wp-includes/revision.php line 849
    	 *
    	 * @param int     $num  Number of revisions to store.
    	 * @param WP_Post $post Post object.
    	 */
    	$num = apply_filters( "wp_{$post->post_type}_revisions_to_keep", $num, $post );
    
    	return (int) $num;
    }
    
    /**
     * Sets up the post object for preview based on the post autosave.