gform_disable_admin_notification

Description

Use this filter to disable admin notification emails.

This hook has been deprecated. Please use gform_disable_notification instead.

Usage

add_filter( 'gform_disable_admin_notification', 'disable_notification', 10, 3 );

You can also specify this per form by adding the form id after the hook name.

add_filter( 'gform_disable_admin_notification_6', 'disable_notification', 10, 3 );

Parameters

  • $is_disabled boolVariable to be filtered. Set it to true to disable admin notifications
  • $form Form Object

    Current form.

  • $entry Entry Object

    Current Entry array

Example

This example disables admin notification for all forms.

add_filter( 'gform_disable_admin_notification', 'disable_notification', 10, 3 );
function disable_notification( $is_disabled, $form, $entry ) {
    return true;
}

Source Code

This filter is located in GFAPI::send_notifications() in includes/api.php