<?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_user_registered hook not working?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/gform_user_registered-hook-not-working</link>
		<description>Gravity Support Forums Topic: gform_user_registered hook not working?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 15:25:01 +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_user_registered-hook-not-working" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "gform_user_registered hook not working?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_user_registered-hook-not-working#post-26213</link>
			<pubDate>Tue, 24 May 2011 11:09:30 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">26213@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Marketnetgroup,&#60;/p&#62;
&#60;p&#62;This response to a related support request is probably applicable to you as well:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;The issue is the the gform_user_registered hook is called too late in the process and when wp_signon attempts to create the login cookie, it generates an error. The easy fix is to set your form confirmation up to a redirect (either page or URL). When the form submission redirects, the hooks will fire sooner in the process and the wp_signon function should work.&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Let me know if you have any questions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>C3Mdigital on "gform_user_registered hook not working?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_user_registered-hook-not-working#post-26185</link>
			<pubDate>Mon, 23 May 2011 21:10:27 +0000</pubDate>
			<dc:creator>C3Mdigital</dc:creator>
			<guid isPermaLink="false">26185@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I haven't tested this myself but in theory it should work.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function my_auto_login( $user_id ) {
wp_set_auth_cookie( $user_id, false, is_ssl() );
wp_set_current_user($user_id);
wp_redirect( admin_url( &#38;#39;profile.php&#38;#39; ) );
exit;
}

add_action( &#38;#39;gform_user_registered&#38;#39;, &#38;#39;my_auto_login&#38;#39; );&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "gform_user_registered hook not working?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_user_registered-hook-not-working#post-26180</link>
			<pubDate>Mon, 23 May 2011 20:00:40 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">26180@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'll have our developer who works on the User Registration Add-On reply to this when he gets a chance.  It's currently after hours so he may not respond until tomorrow.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>marknetgroup on "gform_user_registered hook not working?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/gform_user_registered-hook-not-working#post-26177</link>
			<pubDate>Mon, 23 May 2011 19:16:28 +0000</pubDate>
			<dc:creator>marknetgroup</dc:creator>
			<guid isPermaLink="false">26177@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I am using the User Registration plugin and would like the newly registered users to be automatically signed in after registration.&#60;/p&#62;
&#60;p&#62;I am trying to use the gform_user_registered hook, as well as trying WordPress's user registration hooks, but the do not seem to be firing at all.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
