<?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: Can I change the order that hooks fire?  Or is there a list of when hooks fire?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/can-i-change-the-order-that-hooks-fire-or-is-there-a-list-of-when-hooks-fire</link>
		<description>Gravity Support Forums Topic: Can I change the order that hooks fire?  Or is there a list of when hooks fire?</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 20:26:51 +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/can-i-change-the-order-that-hooks-fire-or-is-there-a-list-of-when-hooks-fire" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Can I change the order that hooks fire?  Or is there a list of when hooks fire?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-change-the-order-that-hooks-fire-or-is-there-a-list-of-when-hooks-fire#post-166854</link>
			<pubDate>Sun, 10 Mar 2013 17:15:50 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">166854@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;To modify an entry after you get your answer from the 3rd party you can use the gform_confirmation and some SQL to update the entry with your 3rd party response.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$wpdb-&#38;gt;insert(&#38;quot;{$wpdb-&#38;gt;prefix}rg_lead_detail&#38;quot;, array(
    &#38;#39;value&#38;#39; =&#38;gt; $responseCode,
    &#38;#39;field_number&#38;#39; =&#38;gt; $field_number,
    &#38;#39;lead_id&#38;#39; =&#38;gt; $entry[&#38;#39;id&#38;#39;],
    &#38;#39;form_id&#38;#39; =&#38;gt; $entry[&#38;#39;form_id&#38;#39;]
));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;gform_confirmation has available the $lead ($entry) and the $form, which should be all you need, other than the field ID and the response code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Deepend on "Can I change the order that hooks fire?  Or is there a list of when hooks fire?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-change-the-order-that-hooks-fire-or-is-there-a-list-of-when-hooks-fire#post-161456</link>
			<pubDate>Tue, 05 Mar 2013 22:34:19 +0000</pubDate>
			<dc:creator>Deepend</dc:creator>
			<guid isPermaLink="false">161456@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So I moved the whole payment gateway into the confirmation hook..  The payment gateway started working!  Only problem now is I need to modify a hidden field on the form following a success or fail response from the 3rd party application.  &#60;/p&#62;
&#60;p&#62;How can I modify the entry within the confirmation hook?&#60;/p&#62;
&#60;p&#62;I would think that I should be using a hook that fires after confirmation for this, but can't find anything that works and modifies the entry.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Can I change the order that hooks fire?  Or is there a list of when hooks fire?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-change-the-order-that-hooks-fire-or-is-there-a-list-of-when-hooks-fire#post-88819</link>
			<pubDate>Thu, 08 Nov 2012 08:43:58 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">88819@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Deepend,&#60;/p&#62;
&#60;p&#62;Sorry you're frustrated. &#60;a href=&#34;http://www.gravityhelp.com/support-times/&#34; rel=&#34;nofollow&#34;&#62;Giving us a chance to answer&#60;/a&#62; would help us alleviate some of this frustration and save you a little time.&#60;/p&#62;
&#60;p&#62;The &#34;gform_post_submission&#34; hook should be deprecated in favor of the &#34;gform_after_submission&#34; hook. I checked the documentation and see that a notice was never added to this page. I agree that is pretty annoying.&#60;/p&#62;
&#60;p&#62;With that out of the way, what were you doing in the &#34;gform_post_submission&#34; hook that could not be done in the &#34;gform_confirmation&#34; hook? Both hooks are passed the $form and $entry objects. Was there something else you needed data-wise?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Deepend on "Can I change the order that hooks fire?  Or is there a list of when hooks fire?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-change-the-order-that-hooks-fire-or-is-there-a-list-of-when-hooks-fire#post-88600</link>
			<pubDate>Wed, 07 Nov 2012 23:14:00 +0000</pubDate>
			<dc:creator>Deepend</dc:creator>
			<guid isPermaLink="false">88600@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The developer documentation is really pretty weak.  Seems like GF is a solution for end users moreso than anyone who wants to integrate into complex apps like ecommerce... We have lost so much time now on GF that we could have built these forms from scratch and they would have worked.&#60;/p&#62;
&#60;p&#62;Would GF like to comment? Or perhaps answer some of my questions?  Seriously considering abandoning this software alltogether now.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Deepend on "Can I change the order that hooks fire?  Or is there a list of when hooks fire?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-change-the-order-that-hooks-fire-or-is-there-a-list-of-when-hooks-fire#post-88595</link>
			<pubDate>Wed, 07 Nov 2012 23:06:24 +0000</pubDate>
			<dc:creator>Deepend</dc:creator>
			<guid isPermaLink="false">88595@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Is this going to be another techincal post that doesn't get answered?  What are we paying this licence fee for anyway?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Deepend on "Can I change the order that hooks fire?  Or is there a list of when hooks fire?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/can-i-change-the-order-that-hooks-fire-or-is-there-a-list-of-when-hooks-fire#post-88583</link>
			<pubDate>Wed, 07 Nov 2012 22:47:14 +0000</pubDate>
			<dc:creator>Deepend</dc:creator>
			<guid isPermaLink="false">88583@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I am creating dynamic XML data inside gform_postsubmission which i need to call on the confirmation page. For this I have been trying to use gform_confirmation .&#60;/p&#62;
&#60;p&#62;But gform_confirmation fires after postsubmission....  This seems illogical to me, shouldn't confirmation fire after the form is submitted??&#60;/p&#62;
&#60;p&#62;Is there a way to modify this behaviour? &#60;/p&#62;
&#60;p&#62;Or is there a more appropriate set of hooks to use that will fire in order to create dynamic data, the retrieve it and display it in a confirmation page?&#60;/p&#62;
&#60;p&#62;A chronological list of when hooks fire would be very nice.&#60;/p&#62;
&#60;p&#62;Any help would be much appreciated, we have lost days over this now.&#60;/p&#62;
&#60;p&#62;Regards.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
