gravityflow_major_version_auto_updates_allowed
The gravityflow_major_version_auto_updates_allowed filter, added in version 2.6, allows automatic updates of major Gravity Flow releases to be controlled.
Parameters
Parameter | Type | Definition |
---|---|---|
$allowed | bool | Indicates if Gravity Flow should update to major versions automatically. Default is true. |
Examples
Example 1 - Disable automatic updates
This example shows how you can prevent major releases of Gravity Flow being insatlled automatically when automatic updates is enabled.
add_filter( 'gravityflow_major_version_auto_updates_allowed', '__return_false' );
Placement
This code should be placed in the functions.php file of your active theme or in a custom functions plugin.