gravityflow_major_version_auto_updates_allowed

Description

The gravityflow_major_version_auto_updates_allowed filter allows automatic updates of major Gravity Flow releases to be controlled.

Parameters

ParameterTypeDetails
$allowedBooleanIndicates if Gravity Flow should update to major versions automatically.
Default is true.

Examples

Disable automatic updates

This example shows how you can prevent major releases of Gravity Flow being insatlled automatically when automatic updates is enabled.

1
add_filter( 'gravityflow_major_version_auto_updates_allowed', '__return_false' );

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?