Description
The gravityflow_disable_auto_update filter allows developers to enable or disable automatic updates for the Gravity Flow plugin.
Usage
add_filter('gravityflow_disable_auto_update', 'my_custom_function', 10, 1);
Parameters
| Parameter | Type | Details |
|---|---|---|
| $disabled | boolean | Whether auto-updates are disabled (true = disabled, false = enabled). |
Examples
Always Enable Auto-Updates
add_filter( 'gravityflow_disable_auto_update', '__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?
Source Code
This filter is located in plugins/gravityflow/class-gravity-flow.php
Since
This filter was added in Gravity Flow 2.6