<?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: Assign new user to post when registration form submitted</title>
		<link>https://legacy.forums.gravityhelp.com/topic/assign-new-user-to-post-when-registration-form-submitted</link>
		<description>Gravity Support Forums Topic: Assign new user to post when registration form submitted</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 12:46:09 +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/assign-new-user-to-post-when-registration-form-submitted" rel="self" type="application/rss+xml" />

		<item>
			<title>signals on "Assign new user to post when registration form submitted"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/assign-new-user-to-post-when-registration-form-submitted#post-60333</link>
			<pubDate>Thu, 24 May 2012 18:27:17 +0000</pubDate>
			<dc:creator>signals</dc:creator>
			<guid isPermaLink="false">60333@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you for your help. Fixed.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rob Harrell on "Assign new user to post when registration form submitted"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/assign-new-user-to-post-when-registration-form-submitted#post-60324</link>
			<pubDate>Thu, 24 May 2012 16:42:17 +0000</pubDate>
			<dc:creator>Rob Harrell</dc:creator>
			<guid isPermaLink="false">60324@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;See if this post helps you out, it sounds identical to your situation:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://gravitywiz.com/2012/04/25/set-registered-user-as-post-author/&#34; rel=&#34;nofollow&#34;&#62;http://gravitywiz.com/2012/04/25/set-registered-user-as-post-author/&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>signals on "Assign new user to post when registration form submitted"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/assign-new-user-to-post-when-registration-form-submitted#post-60322</link>
			<pubDate>Thu, 24 May 2012 16:36:45 +0000</pubDate>
			<dc:creator>signals</dc:creator>
			<guid isPermaLink="false">60322@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have the user registration plugin installed ( V1.4 )&#60;/p&#62;
&#60;p&#62;The form I have has both user and post data. An anonymous user &#34;signs up&#34; and creates a post.  Currently, the user is created and the post is created. However, the new user is not assigned to newly created post.&#60;/p&#62;
&#60;p&#62;I have not been able to figure out what hook to use in order to accomplish this.&#60;br /&#62;
This is sort of what I want to do:&#60;br /&#62;
&#60;a href=&#34;http://www.gravityhelp.com/forums/topic/can-a-user-create-an-account-and-submit-post-with-the-same-form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/can-a-user-create-an-account-and-submit-post-with-the-same-form&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;What I have so far:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;// set post type and publish status
add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;ihearditbefore_gform_post_data&#38;quot;, 10 , 2 );

function ihearditbefore_gform_post_data( $post_data, $form ){

   $post_data[&#38;#39;post_type&#38;#39;] = &#38;#39;person&#38;#39;;
   $post_data[&#38;#39;post_status&#38;#39;] = &#38;#39;publish&#38;#39;;
   return $post_data;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I  notice &#60;code&#62;$form&#60;/code&#62;  has a post_user &#60;code&#62;[postAuthor] =&#38;gt; 13&#60;/code&#62; but it's always the same.  I would need to change that somehow — via what hook?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
