<?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: Need more information on gform_post_submission and $form</title>
		<link>https://legacy.forums.gravityhelp.com/topic/need-more-information-on-gform_post_submission-and-form</link>
		<description>Gravity Support Forums Topic: Need more information on gform_post_submission and $form</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:50:00 +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/need-more-information-on-gform_post_submission-and-form" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Need more information on gform_post_submission and $form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-more-information-on-gform_post_submission-and-form#post-12978</link>
			<pubDate>Fri, 19 Nov 2010 11:23:07 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">12978@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Expanded developer documentation and an all new documentation area will launch once we are done with the extensive changes we are making.  &#60;/p&#62;
&#60;p&#62;Here is an example of the gform_post_submission hook to change the post content, adding values from submitted fields, including an image field.  This is an example of using the form object with the gform_post_submission hook.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;set_post_content&#38;quot;, 10, 2);
function set_post_content($entry, $form){

//getting post
$post = get_post($entry[&#38;quot;post_id&#38;quot;]);

//changing post content
$post-&#38;gt;post_content = &#38;quot;Blender Version:&#38;quot; . $entry[7] . &#38;quot;&#38;lt;br/&#38;gt; &#38;lt;img src=&#38;#39;&#38;quot; . $entry[8] . &#38;quot;&#38;#39;&#38;gt; &#38;lt;br/&#38;gt; &#38;lt;br/&#38;gt; &#38;quot; . $entry[13] . &#38;quot; &#38;lt;br/&#38;gt; &#38;lt;img src=&#38;#39;&#38;quot; . $entry[5] . &#38;quot;&#38;#39;&#38;gt;&#38;quot;;

//updating post
wp_update_post($post);
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Here is documentation on the form object:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://s3.amazonaws.com/gravityforms/documentation/gform_form_object.pdf&#34; rel=&#34;nofollow&#34;&#62;http://s3.amazonaws.com/gravityforms/documentation/gform_form_object.pdf&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here is documentation on the gform_post_submission hook:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://s3.amazonaws.com/gravityforms/documentation/gform_post_submission.pdf&#34; rel=&#34;nofollow&#34;&#62;http://s3.amazonaws.com/gravityforms/documentation/gform_post_submission.pdf&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Sig Kappel on "Need more information on gform_post_submission and $form"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/need-more-information-on-gform_post_submission-and-form#post-12965</link>
			<pubDate>Fri, 19 Nov 2010 05:34:01 +0000</pubDate>
			<dc:creator>Sig Kappel</dc:creator>
			<guid isPermaLink="false">12965@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi.&#60;br /&#62;
I can't find any documentation on the $form element.&#60;br /&#62;
I would like to see some examples on how to use this within a gform_post_submission hook function.. &#60;/p&#62;
&#60;p&#62;is there any further documentation on using gforms in your functions.php file?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
