gform_routing_field_types

Description

The gform_routing_field_types filter in Gravity Forms allows you to modify the field types supported by notification routing.

Usage

The following would apply to all forms.

add_filter( 'gform_routing_field_types', 'your_function_name' );
ParameterTypeDescription
$field_typesarrayCurrently 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 can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Source Code

This filter is located in notification.php