diff --git a/gravity-forms/gw-update-posts.php b/gravity-forms/gw-update-posts.php index c326a694f..6cda6076b 100644 --- a/gravity-forms/gw-update-posts.php +++ b/gravity-forms/gw-update-posts.php @@ -25,6 +25,7 @@ public function __construct( $args = array() ) { 'title' => false, 'content' => false, 'author' => false, + 'excerpt' => false, 'status' => false, 'slug' => false, 'terms' => array(), @@ -105,6 +106,10 @@ public function update_post_by_entry( $entry, $form ) { $post->post_author = (int) rgar( $entry, $this->_args['author'] ); } + if ( $this->_args['excerpt'] ) { + $post->post_excerpt = rgar( $entry, $this->_args['excerpt'] ); + } + if ( $this->_args['status'] ) { $stati = get_post_stati(); $status = rgar( $entry, $this->_args['status'] ); @@ -419,5 +424,3 @@ public function get_post_date( $entry, $form ) { return gmdate( 'Y-m-d H:i:s', strtotime( sprintf( '%s %s:%s:00', $date, $hour, $min ) ) ); } } - -