| CARVIEW |
Select Language
HTTP/2 301
date: Sun, 28 Dec 2025 09:03:59 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_post_add_feed/
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=Q5N0KKZUVWxXmSq4XGEmDgo%2B7cGKr4DiNlSMWBNZ06q9ff1btxKWpaf4BLlV3joNfujjUgNn0HHcOYwxdUay%2BCa3MTr%2BQHn7vf56aK1FgOcIcPuH"}]}
cf-ray: 9b4fe336bf8bc19c-BLR
HTTP/2 200
date: Sun, 28 Dec 2025 09:04:00 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: EXPIRED
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=B1ZHxdpkKh5lz1B7cek8C%2FYoQ3DxlFeaKTd97gRZNYI8S%2FaQMC4UoVFJL8oWNC%2BiDuNAmieBmZ6v0LsLvWE4CZM7zVyXPrX2ROBwFakISNHrrONa"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4fe33d0b08c19c-BLR
gform_post_add_feed - Gravity Forms Documentation
gform_post_add_feed
Description
The gform_post_add_feed action will run after a feed is added to a form.
Usage
add_action( 'gform_post_add_feed', 'your_function_name', 10, 4 );
Parameters
| Parameter | Type | Description |
|---|---|---|
| $feed_id | int | The ID of the newly created feed. |
| $form_id | int | The ID of the form to which the feed belongs. |
| $feed_meta | array | The feed meta data. |
| $addon_slug | string | The slug of the add-on to which the feed belongs. |
Examples
Log when a feed is added
add_action( 'gform_post_add_feed', 'after_add_feed', 10, 4 );
function after_add_feed( $feed_id, $form_id, $feed_meta, $addon_slug ) {
GFCommon::log_debug( __METHOD__ . '(): Feed with id ' . $feed_id . ' added to form with id ' . $form_id . ' 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?
Since
This action was added in Gravity Forms 2.9.20
Source Code
This action is located in includes/api.php