Big thanks to the crew at Gravity Forms! After submitting a request, they were awesome enough to add a new action hook to the Gravity Forms core plugin. I got in touch with them a few weeks ago about adding a new hook to Gravity Forms that runs when a form feed is saved. They added the following to the GFFeedAddOn->save_feed_settings()
method:
/**
* Perform a custom action when a feed is saved.
*
* @param string $feed_id The ID of the feed which was saved.
* @param int $form_id The current form ID associated with the feed.
* @param array $settings An array containing the settings and mappings for the feed.
* @param GFAddOn $addon The current instance of the GFAddOn object which extends GFFeedAddOn or GFPaymentAddOn (i.e. GFCoupons, GF_User_Registration, GFStripe).
*
* @since 2.4.12.3
*/
do_action( 'gform_post_save_feed_settings', $result, $form_id, $settings, $this );
The new hook allows FormSync to support feeds much more reliably. Up to now, FormSync was using a cron to scan forms after a feed was updated. This solution was not ideal, so I reached out to the GF devs about adding a hook to run when feeds are saved. They included the new hook with Gravity Forms version 2.4.12.3. So awesome!
That said, FormSync should still work to scan form feeds on GF versions before 2.4.12.3. However, users running Gravity Forms versions 2.4.12.3 and up will enjoy better reliability when FormSync scans form feeds (e.g. PayPal, GravityFlow, etc.).
Leave a Reply