DescriptionUsageParametersExamplesSource Code
Removed: This hook was removed in version 3.0 and replaced by gform_userregistration_feed_settings_fields.
Description
Used to add a group of options to the 「Additional Options」 section of the User Registration Feed. Useful when you want to add one or two options without requiring a whole section.
Usage
Applies to all forms.
add_action( 'gform_user_registration_add_option_group', 'your_function_name', 10, 3 );
Parameters
$config array
The User Registration configuration array.
$form Form Object
The Form Object for which the current user registration feed is for.
$is_validation_error boolean
Boolean value indicating whether there was a validation error with the User Registration configuration.
Examples
This example shows how to add the 「Send User Email」 option (available by default in the User Registration) using the gform_user_registration_add_option_group as if this option was no already available.
add_action( 'gform_user_registration_add_option_group', 'add_custom_group', 10, 3 );
function add_multisite_section( $config, $form, $is_validation_error ) {
?>
/>