The gform_updates_list filter modifies the available updates displayed on the Forms -> System Status -> Updates page in Gravity Forms.
Usage
add_filter('gform_updates_list', 'your_function_name', 11, 1);
Note: Set the run priority higher than the default of 10 because this filter is also added in the auto upgrade Gravity Forms code, and the list of updates will not be complete unless the filter in the GF code runs before your added filter.
Parameters
- $updates (array): An array of plugins displayed on the Updates page.
More information
See Gravity Forms Docs: gform_updates_list
Examples
Remove a plugin from the list of available updates
This example removes a plugin from the list of available updates.
add_filter('gform_updates_list', 'remove_update', 11, 1); function remove_update($updates) { // Remove user registration from the updates list foreach ($updates as $id => $update) { // Loop through array and create ids for the sub arrays // So the user registration plugin can be removed if ($update['slug'] == 'gravityformsuserregistration') { // Remove it from the main array unset($updates[$id]); break; } } return $updates; }