<?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: Where do I put my custom hook code for gform_post_submission</title>
		<link>https://legacy.forums.gravityhelp.com/topic/where-do-i-put-my-custom-hook-code-for-gform_post_submission</link>
		<description>Gravity Support Forums Topic: Where do I put my custom hook code for gform_post_submission</description>
		<language>en-US</language>
		<pubDate>Wed, 08 Apr 2026 01:28:22 +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/where-do-i-put-my-custom-hook-code-for-gform_post_submission" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Where do I put my custom hook code for gform_post_submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-do-i-put-my-custom-hook-code-for-gform_post_submission#post-32629</link>
			<pubDate>Mon, 15 Aug 2011 23:27:18 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">32629@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The hook is &#60;em&#62;present&#60;/em&#62; in the file form_display.php (in other words, that's where Gravity Forms coded it and the function lives.)  In case you wanted to dig in and see how it works.  But you should never modify the core plugin files.  What you want to do is easily possible from functions.php using the available hooks and filters.  If you need help with implementation, please let us know.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>infocus on "Where do I put my custom hook code for gform_post_submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-do-i-put-my-custom-hook-code-for-gform_post_submission#post-32610</link>
			<pubDate>Mon, 15 Aug 2011 20:44:30 +0000</pubDate>
			<dc:creator>infocus</dc:creator>
			<guid isPermaLink="false">32610@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Ok great thanks!&#60;/p&#62;
&#60;p&#62;I think I got confused as on the bottom of:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;https://s3.amazonaws.com/gravityforms/documentation/gform_post_submission.pdf&#34; rel=&#34;nofollow&#34;&#62;https://s3.amazonaws.com/gravityforms/documentation/gform_post_submission.pdf&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It says &#34;This action hook is located in form_display.php&#34;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Where do I put my custom hook code for gform_post_submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-do-i-put-my-custom-hook-code-for-gform_post_submission#post-32592</link>
			<pubDate>Mon, 15 Aug 2011 17:22:22 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">32592@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;infocus, that code goes in your theme's functions.php&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Also, the 10 and the 2 are priority (10) and number of arguments (2) the function accepts.  Those are WordPress conventions and you can read about them here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/add_action#Usage&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/add_action#Usage&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Don't make any modifications to the Gravity Forms plugin files.  Hooks and filters make modification of the core files unnecessary.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>infocus on "Where do I put my custom hook code for gform_post_submission"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/where-do-i-put-my-custom-hook-code-for-gform_post_submission#post-32590</link>
			<pubDate>Mon, 15 Aug 2011 17:10:38 +0000</pubDate>
			<dc:creator>infocus</dc:creator>
			<guid isPermaLink="false">32590@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Say my custom hook is something like:&#60;/p&#62;
&#60;p&#62;add_action('gform_post_submission', 'do_something');&#60;br /&#62;
function do_something($entry){&#60;br /&#62;
    //Do something code&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;Where exactly do I place the above code in form_display.php (or elsewhere) for it to trigger after successful form submission? A line number would be most helpful.&#60;/p&#62;
&#60;p&#62;-------&#60;/p&#62;
&#60;p&#62;Another question... all the sample code has:&#60;/p&#62;
&#60;p&#62;add_action(&#34;gform_post_submission&#34;, &#34;set_post_content&#34;, 10, 2); &#60;/p&#62;
&#60;p&#62;What is the 10 and 2?&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
