gform_disable_auto_update

Description

The “gform_disable_auto_update” filter allows automatic updates to be disabled for Gravity Forms and official add-ons.

Usage

add_filter( 'gform_disable_auto_update', '__return_true' );

Parameters

ParameterTypeDescription
$disabledboolIndicates if auto-updates are disabled for the plugin or add-on. Default is based on the status set on the WordPress Installed Plugins page.
$slugstringThe plugin or add-on slug. Added in Gravity Forms 2.9.24.

Examples

Disable automatic updates.

add_filter( 'gform_disable_auto_update', '__return_true' );

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 action hook is located in gravityforms.php

Since

This filter was added in 1.9.