As a Gravity Forms developer, you will have one thing in mind:
To extend Gravity Forms core and make it really do exactly what you (or your client) want it to do.
Good news is that there is a highly flexible and productive API available to dig deep into.
The key to selecting the right API?
Understanding what the different areas of API actually do in the grand scheme of things Gravity.
Here’s a quick overview that will help build that understanding instantly:
Data objects in Gravity Forms are objects/arrays that contain information about a Gravity Form like how the form is configured or the actual submission data given by the user.
Here are the 7 classes (2 major and 5 minor) of data objects in Gravity Forms
- ENTRY object: all properties of a specific entry…date created, client IP, and submitted field values.
- FORM object: all properties of a specific form…title, fields, notification, and confirmation.
- Field object: all settings of a particular field.
- Notifications object: “associative array containing all configured notifications for a form.”
- Confirmations object: “associative array containing all configured confirmations for a form.”
- Conditional logic object: rules applied to “form or page button or to any field, controls the visibility of that element based on a choice selected or a value entered by the user in other fields on the form…also [be] used to determine if a notification, confirmation or add-on feed should be used.”
- Buttons object: “settings configured for the form button…button text.”
PHP API is the way that as a developer you can access Gravity Forms when working within the same environment (server or site).
What can you do with PHP API?
- Developing a new Gravity Forms Add-On,
- Creating a new field type or
- Using a hook or filter to change default Gravity Forms behavior
Here are the components:
- API functions: made up of GFAPI Class and Helper Functions enabling you as a developer to manipulate core Gravity Forms data like entries, forms, notifications, confirmations, buttons.
- Add-on framework: if you are making an add-on this framework gives you come basic functionality. These classes can be extended to perform: initialisation, settings pages, permissions, feed condition and script enqueuing.
- Field framework: classes and methods for making field types – all existing field types use this framework and custom ones too will use this.
- Constants: a few constant methods for initialisation and customisation of data.
v2: allows developers to create, read, update and delete forms, entries, and results over HTTP.
v1: allows developers to create, read, update and delete forms, entries, and results (replaced by v2, although can still be used).
A list actions and filters that enable you to modify almost every aspect of what Gravity Forms can do. This gives Gravity Forms developers HUGE potential for solving almost any data related problem with WordPress.
These action hooks allow you to make something else happen when an event takes place
These hooks literally filter through all the data pertaining to a form or entry and allow you to modify data for achieving your own purposes.
This is a summary of the core knowledge base of a Gravity Forms developer.
Leave them below.