| CARVIEW |
Select Language
HTTP/2 301
date: Mon, 29 Dec 2025 22:40:06 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_update_feed_active/
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=GDs3OgjKSPliuAiYtulQUmHWepC25laFmTZ98wnF0KNX%2FWMIF7f4ZG7ES17b%2BsREOfCFB%2FFmCFaGSIbe1%2FRHdvTOBKzn7vN%2BNLz7FDhsr78Oa9RS"}]}
cf-ray: 9b5ccc10ce1ff424-BLR
HTTP/2 200
date: Mon, 29 Dec 2025 22:40:06 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=Bfya1kZ24k20YavwCTYmU%2FB6HrUcMY8wUrc5S1ZzyyWaMgA%2F3sK0a1JFfslmHoTbSBdi681Ugme3WetWnRlJrs9IftmE%2F8h36yuzxzcLkvLtB7TR"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b5ccc17f8ccf424-BLR
gform_update_feed_active - Gravity Forms Documentation
gform_update_feed_active
Description
The gform_update_feed_active action fires immediately after a feed’s active status is updated.
Usage
add_action( 'gform_update_feed_active', 'your_function_name', 10, 3 );
Parameters
| Parameter | Type | Description |
|---|---|---|
| $id | int | The ID of the feed being updated. |
| $is_active | bool | The new active status of the feed (true = active, false = inactive). |
| $this | GFFeedAddOn | The current instance of the add-on performing the update. In callbacks, this will be passed as the $addon argument. |
Examples
Log feed activation changes
add_action( 'gform_update_feed_active', 'test_update_feed_active', 10, 3 );
function test_update_feed_active( $feed_id, $status, $addon ) {
GFCommon::log_debug( __METHOD__ . '(): Feed with id ' . $feed_id . ' changed to status ' . ( $status ? 'active' : 'inactive' ) . ' by the ' . $addon->slug . ' add-on.' );
}
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 action is located in includes/addon/class-gf-feed-addon.php
Since
This action was added in Gravity Forms 2.9.20