Gravity Forms: Do not sync feeds for existing forms

This snippet for Broadcast will prevent the Gravity Forms add-on from syncing the feeds of forms that already exist on the child blog.

Normally, Broadcast will delete all existing feeds on the child blog’s form and then add the feeds from the parent form again.

This is because the feeds do not have any unique identifiers that Broadcast can use to distinguish between old / new feeds.

add_action( 'broadcast_gf_addon_feed_sync', function( $action )
{
  // If a new form was not created, finish = do not sync the feeds.
  if ( ! $action->new_form )
    $action->finish();
} );