bookmark_borderFeed Object

Introduction

The Feed Object ($feed) is an associative array containing all the properties which determine if and how the form submission is processed by an add-on. For example the feed for a payment add-on determines the type of payment transaction which occurs and what values are sent to the payment gateway.

$feed = array(
	'id'         => 5,
	'form_id'    => 10,
	'is_active'  => true,
	'meta'       => array(),
	'addon_slug' => 'gravityformsslack',
);

Usage

We recommend accessing the $feed properties using the rgar() or rgars() functions e.g.

$meta = rgar( $feed, 'meta' );
$conditional_logic_enabled = rgars( $feed, 'meta/feed_condition_conditional_logic' );

Properties

  • id integer

    The feed ID.

  • form_id integer

    The form ID this feed was created for. An ID of 0 indicates the feed applies to ALL forms.

  • is_active boolean

    Is the feed active or inactive. Default is true.

  • meta array

    Feed meta is an associative array. The available properties vary from add-on to add-on. Please see the add-on specific articles for the individual properties:

  • addon_slug string

    The slug belonging to the add-on used to create the feed, including the gravityforms prefix. See the Gravity Forms Add-On Slugs article for a list of possible slugs.