How to edit posts using gravity forms with special snippet code?

Here is example how to use gravity forms for edit posts:

new GW_Update_Posts( array(
'form_id' => 1,
'post_id' => 10,
'title'   => 1,
'content' => 3,
'author'  => 11,
'status'  => 5,
'terms'   => array( 6, 7 ),
'meta'    => array(
'custom_field'         => 8,
'another_custom_field' => 9
),
'featured_image' => 10,
'post_date' => array(
'date'   => 11,
'time'   => 12
),  
) );

 

Code for edit wordpress (custom) posts can be found here:

https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-update-posts.php