CARVIEW |
Select Language
HTTP/2 200
date: Sun, 12 Oct 2025 08:04:09 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=VtK1zARvfiKnmipmDmfkF7r0xzK9QF4L%2F6XaXX14FMsmxJgRRF2t0H9lNtZ6l6upYAOoZw4NQUssQTNKx1ecixdyZgRiBoYXbiV36T3HRfp%2FrIpx"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 98d515b5da5b6f7a-BLR
gform_uninstalling - Gravity Forms Documentation
gform_uninstalling
Description
The gform_uninstalling
action hook can be used to perform any clean-up tasks when the uninstall button has been clicked on the Forms > Settings > Uninstall page.
Usage
The action hook which runs during uninstall would be used like so:
add_action( 'gform_uninstalling', 'your_function_name' );
Parameters
This hook has no parameters.
Examples
Delete an option on uninstall
This example shows how you can delete custom options from the wp_options table when Gravity Forms is uninstalled.
add_action( 'gform_uninstalling', function() {
delete_option( 'your_option_name );
} );
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?
Since
This action hook was added in Gravity Forms v2.6.9.
Source Code
This action hook is located in GFSettings::settings_uninstall_page()
in settings.php.