gform_allow_feed_reprocessing

Description

This gform_allow_feed_reprocessing filter enables reprocessing of feeds for a given entry. It applies to both synchronous and asynchronous feed processing.

By default, feeds are not reprocessed for the same entry. Using this filter will allow a feed to be sent multiple times for the same entry.

Usage

add_filter( 'gform_allow_feed_reprocessing', 'your_function_name', 10, 6 );

Parameters

NameTypeDescription
$allow_reprocessingboolIndicates if the feed can be reprocessed. Default is false.
$feedarrayThe feed queued for processing.
$entryarrayThe entry being processed.
$formarrayThe form the entry belongs to.
$addonGFFeedAddOnThe current instance of the add-on the feed belongs to.
$processed_feedsarrayAn array of feed IDs that have already been processed for the given entry.

Examples

Enable reprocessing for all feeds.

add_filter( 'gform_allow_feed_reprocessing', function( $allow_reprocessing, $feed, $entry, $form, $addon, $processed_feeds ) {
    return true;
}, 10, 6 );

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Since

This filter was added in Gravity Forms 2.9.2

Source Code

This filter is located in includes/addon/class-gf-feed-addon.php

Notes

This filter replaces gform_allow_async_feed_reprocessing which has been deprecated.