Class GFFeedAddOn
Class GFAddOn
Handles all tasks mostly common to any Gravity Forms Add-On, including third party ones.
- GFAddOn
- GFFeedAddOn
Direct known subclasses
GFPaymentAddOn
public
|
|
public
|
|
public
|
#
init_admin( )
Override this function to add initialization code (i.e. hooks) for the admin site (WP dashboard) |
public
|
|
public
|
#
post_gravityforms_upgrade( mixed $db_version, mixed $previous_db_version, mixed $force_upgrade )
Gets called when Gravity Forms upgrade process is completed. This function is intended to be used internally, override the upgrade() function to execute database update scripts. |
public
|
|
public
|
|
public
array
|
#
maybe_process_feed( array $entry, array $form )
Determines what feeds need to be processed for the provided entry. |
public
boolean
|
#
maybe_delay_feed( array $entry, array $form )
Determines if feed processing is delayed by the PayPal Standard Add-On. |
public
boolean|null
|
#
is_delayed( array $paypal_feed )
Retrieves the delay setting for the current add-on from the PayPal feed. |
public
boolean
|
#
is_asynchronous( array $feed, array $entry, array $form )
Determines if feed processing should happen asynchronously. |
public
array|null
|
|
public
|
|
public
|
|
public
string
|
|
public
integer|boolean
|
|
public
array
|
|
public
array
|
#
notification_events( array $events, array $form )
Add notifications events supported by Add-On to notification events list. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean|array
|
#
get_single_submission_feed_by_form( array $form, array|false $entry )
Return the active feed to be used when processing the current entry, evaluating conditional logic if configured. |
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
#
post_form_duplicated( integer $form_id, integer $new_id )
Maybe duplicate feeds when a form is duplicated. |
public
|
|
public
|
#
form_settings_init( )
Initializes form settings page Hooks up the required scripts and actions for the Form Settings page |
public
|
|
public
|
|
public
|
|
public
|
#
form_settings( mixed $form )
Custom form settings page Override this function to implement a complete custom form settings page. Before overriding this function, consider using the form_settings_fields() and specifying your field meta. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
#
feed_list_no_item_message( )
Override this function to change the message that is displayed when the feed list is empty |
public
string|false
|
#
feed_list_message( )
Override this function to force a message to be displayed in the feed list (instead of data). Useful to alert users when main plugin settings haven't been completed. |
public
|
|
public
boolean|true
|
|
public
boolean|true
|
#
can_duplicate_feed( integer|array $id )
Override this function to allow the feed to being duplicated. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
|
public
|
|
public
|
|
public
array
|
#
add_paypal_post_payment_actions( array $feed_settings_fields )
Add the Post Payments Actions setting to the PayPal feed. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public static
|
protected
boolean
|
$_multiple_feeds
If set to true, Add-On can have multiple feeds configured. If set to false, feed list page doesn't exist and only one feed can be configured. |
# true |
protected
boolean
|
$_single_feed_submission
If true, only first matching feed will be processed. Multiple feeds can still be configured, but only one is executed during the submission (i.e. Payment Add-Ons) |
# false |
protected
mixed
|
$_single_submission_feed
If $_single_feed_submission is true, $_single_submission_feed will store the current single submission feed as stored by the get_single_submission_feed() method. |
# false |
protected
boolean
|
$_supports_feed_ordering
If true, users can configure what order feeds are executed in from the feed list page. |
# false |
protected
boolean
|
$_async_feed_processing
If true, feeds will be processed asynchronously in the background. |
# false |
protected
boolean
|
$_supports_frontend_feeds
If true, feeds w/ conditional logic will evaluated on the frontend and a JS event will be triggered when the feed is applicable and inapplicable. |
# false |
protected
boolean
|
$_bypass_feed_delay
If true, maybe_delay_feed() checks will be bypassed allowing the feeds to be processed. |
# false |