Description
Allows the from address warning to be disabled.
Usage
add_filter( 'gform_notification_disable_from_warning', '__return_true' );
Parameters
- $disable_from_warning bool
Should the From Email warning be disabled?
Example
- Disable the warning message for all the notifications.
add_filter( 'gform_notification_disable_from_warning', '__return_true' );
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms v2.4.13.
Source Code
This filter is located in notifications.php.
$disable_from_warning = gf_apply_filters( array( 'gform_notification_disable_from_warning', $form['id'], rgar( $notification, 'id' ) ), false );