<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: gform_post_submission hooks executed after confirmation redirect</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-hooks-executed-after-confirmation-redirect</link>
		<description>Gravity Support Forums Topic: gform_post_submission hooks executed after confirmation redirect</description>
		<language>en-US</language>
		<pubDate>Mon, 06 Apr 2026 18:53:57 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/gform_post_submission-hooks-executed-after-confirmation-redirect" rel="self" type="application/rss+xml" />

		<item>
			<title>toregustafson on "gform_post_submission hooks executed after confirmation redirect"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_post_submission-hooks-executed-after-confirmation-redirect#post-29260</link>
			<pubDate>Wed, 06 Jul 2011 20:22:09 +0000</pubDate>
			<dc:creator>toregustafson</dc:creator>
			<guid isPermaLink="false">29260@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I typically like to set the confirmation page to another WordPress page but this doesn't allow for the use of the gform_post_submission hooks as the confirmation redirect happens before the hooks are called.  Is there a good reason for this?  Essentially, if I want to hook into the post submission I have to use the text confirmation message.  In form_display.php on line 75:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;header(&#38;quot;Location: {$confirmation[&#38;quot;redirect&#38;quot;]}&#38;quot;);
do_action(&#38;quot;gform_post_submission&#38;quot;, $lead, $form);
 do_action(&#38;quot;gform_post_submission_{$form[&#38;quot;id&#38;quot;]}&#38;quot;, $lead, $form);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Why would it not be:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;do_action(&#38;quot;gform_post_submission&#38;quot;, $lead, $form);
do_action(&#38;quot;gform_post_submission_{$form[&#38;quot;id&#38;quot;]}&#38;quot;, $lead, $form);
 header(&#38;quot;Location: {$confirmation[&#38;quot;redirect&#38;quot;]}&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I looked over the forum best I could but didn't see anyone mention of this nor can I imagine why you'd want to prevent this hook if the confirmation message is a redirect.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
