The User Registration provides an assortment of hooks that can be used to modify the default functionality or extend it.
Hooks and Filters
Following is a list of available hooks and filters.
The following filters can be used to manipulate the form data before the form gets displayed to the screen. Tasks such as adding drop down items dynamically or pre-populating field values can be accomplished using them.
- Used to validate Gravity Form submissions that have a User Registration feed attached.
- Fires after the user has been registered and passes the user id of the newly created user, the User Registration config meta and Gravity Form entry used to create the user.
The following filters are fired within the Gravity Forms administration allowing the customization of certain elements.
- Use this filter to add/remove field type buttons to the form editor screen
The following events are fired via jQuery and allow custom client side scripts to be executed.
- Fires on multi-page forms when changing pages (i.e. going to the next or previous page)
Gravity Forms introduces new capabilities to the WordPress Role system. For more information, check out the Role Management page.
Following are some samples on using Gravity Forms' hooks to modify/extend Gravity Forms functionality.