gform_routing_field_types

Description

The “gform_routing_field_types” filter in Gravity Forms allows the field types supported by notification routing to be modified.

Usage

The following would apply to all forms.

add_filter( 'gform_routing_field_types', 'your_function_name' );

Parameters

  • $field_types array

    Currently supported field types. Generated from GFNotification::$supported_fields

Example

add_filter( 'gform_routing_field_types', function( $field_types ) {
array_push( $field_types, 'my-custom-field-type' );
  return $field_types;
} );

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in notification.php