| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 19:40:46 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_post_submission/
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: HIT
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=nPP4fpBZajZYKPvHn9A1qFE%2BH7RKWBsBJ%2BOYIa7xmA%2FMcvkBh%2BjgFYncWiRMHauZ4iaBrihl3tpYqUEkC2jYYhTYHadNc7B1f5jgM2lgElS1UPQ2"}]}
cf-ray: 9b4b4aa17a26e084-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 19:40:46 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=7PNJB0bedM5Dk2TQUou10XReNh5VEBrz7WcGhwRd0Fpbhj%2BjzjDdgbxeOnW9XmPJTfX99HEhcqlIg%2BPdYlZo9sC1b7W5rLUB%2Fai54en0AhDD7P25"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b4b4aa63e1ce084-BLR
gform_post_submission - Gravity Forms Documentation
gform_post_submission
Description
This action hook is executed at the end of the submission process (after form validation, notification, and entry creation) when the confirmation is configured to redirect to a page or URL. Use this hook to perform actions after the entry has been created (i.e. feed data to third party applications). The Entry Object is available to this hook and contains all submitted values.
This hook has been deprecated. Please use gform_after_submission instead.
Usage
Applies to all forms
add_action( 'gform_post_submission', 'post_submission', 10, 2 );Applies to a specific form. In this case, form Id 5
add_action( 'gform_post_submission_5', 'post_submission', 10, 2 );Parameters
- $entry Entry ObjectThe entry that was just created.
- $form Form ObjectThe form which was used to create the entry.
Examples
add_action( 'gform_post_submission', 'set_post_content', 10, 2 ); function set_post_content( $entry, $form ) { //getting post $post = get_post( $entry['post_id'] ); //changing post content $post->post_content = "Blender Version:" . $entry[7] . "<br/> <img src='" . $entry[8] . "'> <br/> <br/> " . $entry[13] . " <br/> <img src='" . $entry[5] . "'>"; //updating post wp_update_post( $post ); }Source Code
This action hook is located in the following methods:
- GFFormDisplay::process_form() in form_display.php
- GFFormDisplay::get_form() in form_display.php