This simple snippet allows you to close comments on posts created via a Gravity Form.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|* Close Comments when Post Created via Gravity Forms|
|// update the '6' to the ID of your form|
|$post_data['comment_status'] = 'closed';|