| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 08:49:11 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_post_form_trashed/
server: cloudflare
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
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=RGWjnDLzIV9vInRgIY0L0YM7nBxjIRr7ecBEbkx3osMjqfvRnv4fLdXCTYBRNnUH0E%2BU05aYIB50AiC9MbTQZRuUp%2Bz2kf2TscJKtXAdWkThdsWZ"}]}
cf-ray: 9b47902a8ce8a45e-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 08:49:11 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
content-security-policy: frame-ancestors 'self';
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=nAflkvwC%2F6kgQWMKpKVjo0V0KI3UGZxu6fFnx6jvDW3EK7ANAFt7fVtLjpPQ4PFpsib0M36ZCz1Vj5Fw0FrmFtHO3ZXCdeo4%2Fq6Y8u5hi8LYcrP8"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b47902dc9a7a45e-BLR
gform_post_form_trashed - Gravity Forms Documentation
gform_post_form_trashed
Description
The “gform_post_form_trashed” action is triggered after a form is moved to trash in Gravity Forms, allowing further actions to be performed.
Usage
add_action( 'gform_post_form_trashed', 'my_function', 10, 1 );
Parameters
- $form_id int
The ID of the form being moved to trash.
Examples
add_action( 'gform_post_form_trashed', 'my_post_form_trashed_func', 10);
function my_post_form_trashed_func( $form_id ) {
// perform action after a form has been moved to the trash
}
Source Code
This action hook is located in forms_model.php.