Using Gravity Forms ‘gform_user_registration_add_option_section’ PHP filter

The gform_user_registration_add_option_section action was a Gravity Forms PHP action used to add a custom option section to the User Registration Feed. It has been removed in version 3.0 and replaced by gform_userregistration_feed_settings_fields.

Usage

add_action('gform_user_registration_add_option_section', '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.

More information

See Gravity Forms Docs: gform_user_registration_add_option_section

Examples

Add Multisite section to the feed page

This example demonstrates how to add a Multisite section to the feed page. It is a modified version of the code from the User Registration source code.

add_action('gform_user_registration_add_option_section', 'add_multisite_section', 10, 3);

function add_multisite_section($config, $form, $is_validation_error) {
    // Your custom code here
}

Note: As this action has been removed in version 3.0, it is recommended to use the gform_userregistration_feed_settings_fields action instead.