Override filter variable not working

The plugin author said that this is a bug. The fix will be included into the next release in some days. Therefore you can see the changes in the link below: https://github.com/Awesome-Support/Awesome-Support/commit/4312c02a3e35bb369e943d807377610670e71f41

Allow Comments by Default for Multiple Post Types

function default_comments_on( $data ) { $myCustomPostType = array(“my_custom_post_type_1”, “my_custom_post_type_2”, “contacts”); /* Custom Post Type Array */ if (in_array($data[‘post_type’], $myCustomPostType)) { $data[‘comment_status’] = ‘open’; } return $data; } add_filter( ‘wp_insert_post_data’, ‘default_comments_on’ ); Add this code in functions.php