The gform_disable_installation_status Gravity Forms PHP filter disables the display of the Installation Status section on the Forms > Settings page.
Usage
add_filter('gform_disable_installation_status', '__return_true');
Parameters
This filter has no parameters.
More information
See Gravity Forms Docs: gform_disable_installation_status
Place this code in the functions.php file of your active theme.
This filter was added in Gravity Forms 1.9.11.1.
Examples
Disable the Installation Status section
Disables the Installation Status section in the Forms > Settings page.
add_filter('gform_disable_installation_status', 'disable_installation_status_section'); function disable_installation_status_section() { return true; }
Enable the Installation Status section
Enables the Installation Status section in the Forms > Settings page.
add_filter('gform_disable_installation_status', 'enable_installation_status_section'); function enable_installation_status_section() { return false; }
Disable the Installation Status section for non-admin users
Disables the Installation Status section in the Forms > Settings page only for non-admin users.
add_filter('gform_disable_installation_status', 'disable_installation_status_for_non_admin'); function disable_installation_status_for_non_admin() { return !current_user_can('manage_options'); }
Disable the Installation Status section based on user role
Disables the Installation Status section in the Forms > Settings page for users with the ‘editor’ role.
add_filter('gform_disable_installation_status', 'disable_installation_status_for_editors'); function disable_installation_status_for_editors() { $user = wp_get_current_user(); return in_array('editor', $user->roles); }
Disable the Installation Status section based on custom condition
Disables the Installation Status section in the Forms > Settings page based on a custom condition.
add_filter('gform_disable_installation_status', 'disable_installation_status_based_on_condition'); function disable_installation_status_based_on_condition() { // Your custom condition here $condition = true; return $condition; }