add_filter( 'wp_revisions_to_keep', 'filter_function_name', 10, 2 );function filter_function_name( $num, $post ) { if( 'my_custom_post' == $post->post_type ) { $num = 5; } return $num;}
Comments