CleverReach Feed Meta

Introduction

The Feed Object meta for the CleverReach add-on is an associative array containing the properties which determine how the add-on should process the form submission.

$feed['meta'] = array(
	'feed_name'                               => 'Your Feed Name',
	'email'                                   => '2',
	'feed_condition_conditional_logic'        => true,
	'feed_condition_conditional_logic_object' => array(
		'conditionalLogic' => array(),
	),
);

Usage

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

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

Properties

  • feed_name string

    The feed name which appears on the add-ons feeds tab.

  • group string

    The CleverReach Group ID this feed will add the contacts to.

  • email string

    The ID of the form field containing the user’s email.

  • custom_fields array

    A multidimensional array containing the CleverReach custom fields. See Custom Field Properties.

  • double_optin_form string

    The ID of the CleverReach form which will be used when exporting to CleverReach to send the opt-in email.

  • feed_condition_conditional_logic boolean

    Is the feed condition (conditional logic) setting enabled. Default is false.

  • feed_condition_conditional_logic_object array

    An associative array containing the conditional logic rules. See the Conditional Logic Object for more details.

Custom Field Properties

array(
    'key'   => 'first_name',
    'value' => '1.3',
)

Each custom field is an associative array containing the following properties:

  • key string

    The CleverReach custom field name. Lowercase and spaces replaced with underscores.

  • value string

    The ID of the form field or entry meta item containing the value for this custom field.