gform_routing_field_types

gform_routing_field_types

DescriptionUsageParametersExamplePlacementSource Code

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.
1add_filter( 'gform_routing_field_types', 'your_function_name' );

Parameters

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

Example
1234add_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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注