bookmark_bordergform_post_process_feed

Description

The gform_post_process_feed hook can be used to perform a custom action when a feed has been processed.

Usage

The hook which would run for all add-on feeds would be used like so:

add_filter( 'gform_post_process_feed', 'your_function_name', 10, 4 );

You can target a specific add-on with the following variation of this hook:

add_filter( 'gform_{ADDON_SLUG}_post_process_feed', 'your_function_name', 10, 4 );

See the Gravity Forms Add-On Slugs article for a list of possible slugs.

Parameters

Examples

1. Send Notification

The following example shows how you can send a notification once a feed has been processed. You can use the gform_notification_events filter to make new events available for selection when users are configuring notifications.

add_action( 'gform_post_process_feed', 'post_process_feed', 10, 4 );
function post_process_feed( $feed, $entry, $form, $addon ) {
    GFAPI::send_notifications( $form, $entry, 'some_event' );
}

Source Code

This action hook is located in GFFeedAddOn::maybe_process_feed() in /includes/addons/class-gf-feed-addon.php

Since

This hook was added in Gravity Forms 2.0-beta-3.