<?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: Issue with gform_after_submission Hook and User Registration and Sending Emails</title>
		<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails</link>
		<description>Gravity Support Forums Topic: Issue with gform_after_submission Hook and User Registration and Sending Emails</description>
		<language>en-US</language>
		<pubDate>Thu, 09 Apr 2026 07:52:03 +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/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Issue with gform_after_submission Hook and User Registration and Sending Emails"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails#post-111743</link>
			<pubDate>Mon, 31 Dec 2012 13:49:17 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">111743@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Please do send me a WordPress administrator login to &#60;a href=&#34;mailto:chris@rocketgenius.com&#34;&#62;chris@rocketgenius.com&#60;/a&#62; and I will take a look at it. Please reference this topic when you send the details. Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>theslink2000 on "Issue with gform_after_submission Hook and User Registration and Sending Emails"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails#post-106523</link>
			<pubDate>Sun, 23 Dec 2012 15:29:08 +0000</pubDate>
			<dc:creator>theslink2000</dc:creator>
			<guid isPermaLink="false">106523@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;WP_DEBUG is on as the site is still being built, nothing is showing up I'm afraid.  If you want access give me an email address and I'll ping the details over.&#60;/p&#62;
&#60;p&#62;I'm totally stumped, the user_login value found in $entry[24] is pre-set by the code (see this pastie from above &#60;a href=&#34;http://pastie.org/private/0hxws6a4duv3jipfwravw&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/private/0hxws6a4duv3jipfwravw&#60;/a&#62; ) so it can't be wrong, also the structure is appearing in the database properly and you can then login with the information after the form has submitted.  Also just to be 100% sure you can dump out $entry[24] and it's correct.&#60;/p&#62;
&#60;p&#62;What else could possibly be stopping it?  Or do you have any idea how else I could find the new user's id?  I can't think of anything as no other information is guaranteed to be unique (I've got a good reason for disabling unique emails).&#60;/p&#62;
&#60;p&#62;I'm not sure what day's you're working next week but if you get this before Christmas I hope you have a good one bud, and thanks for the continuing help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Issue with gform_after_submission Hook and User Registration and Sending Emails"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails#post-106054</link>
			<pubDate>Sat, 22 Dec 2012 15:32:32 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">106054@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It is returning everything, but that just makes me thing that at the time it's being called, $entry[24] is not returning the correct value.  Can you turn on WP_DEBUG and see if there are any warnings or notices being triggered that we're not seeing?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>theslink2000 on "Issue with gform_after_submission Hook and User Registration and Sending Emails"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails#post-105970</link>
			<pubDate>Sat, 22 Dec 2012 10:13:10 +0000</pubDate>
			<dc:creator>theslink2000</dc:creator>
			<guid isPermaLink="false">105970@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;From what I understand of the function you're right, it should only return all if there is no criteria, but as you can see here it is outputting everything:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/private/pfdaihzdlrjt3pnryixneg&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/private/pfdaihzdlrjt3pnryixneg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Also just to make sure I've tested it with 'login' and 'user_login', both have the same effect.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Issue with gform_after_submission Hook and User Registration and Sending Emails"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails#post-105633</link>
			<pubDate>Fri, 21 Dec 2012 23:17:01 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">105633@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't think it should return more than one user.  Sounds like it's being called without any parameters, so it just returns everything?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>theslink2000 on "Issue with gform_after_submission Hook and User Registration and Sending Emails"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails#post-105488</link>
			<pubDate>Fri, 21 Dec 2012 16:51:03 +0000</pubDate>
			<dc:creator>theslink2000</dc:creator>
			<guid isPermaLink="false">105488@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;$entry[24] is correct.  $entry[15] is a different function that registers a different type of user under different circumstances, but on that form it serves identical purpose.&#60;/p&#62;
&#60;p&#62;I tried your suggestion and it simply outputs every users information.  The exception is that the final entry is the login of the newly registered user but there is no more information given on the new user.&#60;/p&#62;
&#60;p&#62;But this seems to be progress.  Any more ideas bud?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Issue with gform_after_submission Hook and User Registration and Sending Emails"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails#post-105454</link>
			<pubDate>Fri, 21 Dec 2012 15:02:22 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">105454@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;
That is the user id of the user being created during the registration process powered by this form.&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;It's not the user ID, which in WordPress would be numeric.  It's the user login, isn't it? Can you try this way?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$user = new WP_User_Query( array( &#38;#39;login&#38;#39; =&#38;gt;  $entry[24] ) );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'm confused where the user login is stored in the entry.  Is it $entry[15] or $entry[24]?  Seems like I have seen reference to it in the code both ways?  I might be confused on user ID vs user login.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>theslink2000 on "Issue with gform_after_submission Hook and User Registration and Sending Emails"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails#post-105282</link>
			<pubDate>Fri, 21 Dec 2012 04:18:42 +0000</pubDate>
			<dc:creator>theslink2000</dc:creator>
			<guid isPermaLink="false">105282@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry Chris, I didn't get an email telling me you'd replied.&#60;/p&#62;
&#60;p&#62;That is the user id of the user being created during the registration process powered by this form.  So you're right in that the user wouldn't exist at the start, hence the code has picked that user id, but by the time the gform_after_submission hook is fired it should be registered and in place.  This is exactly how the home registration works and it doesn't cause an issue with that form.  As you can see from this screenshot the user is registered correctly:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://i1089.photobucket.com/albums/i351/theslink2000/user_zps6d8bc953.jpg&#34; rel=&#34;nofollow&#34;&#62;http://i1089.photobucket.com/albums/i351/theslink2000/user_zps6d8bc953.jpg&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;But you're right in as much as the lack of that being a registered user would be the cause, but why does it not see it as a registered user when it is registering the user, if you see what I mean.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Issue with gform_after_submission Hook and User Registration and Sending Emails"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails#post-103639</link>
			<pubDate>Mon, 17 Dec 2012 18:02:12 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">103639@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It seems to me that $entry[24] is &#34;PL21NT-015&#34;, but that is not a WordPress user ID.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[24]=&#38;gt; string(10) &#38;quot;PL21NT-015&#38;quot;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Am I misreading your code?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>theslink2000 on "Issue with gform_after_submission Hook and User Registration and Sending Emails"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/issue-with-gform_after_submission-hook-and-user-registration-and-sending-emails#post-102123</link>
			<pubDate>Thu, 13 Dec 2012 09:29:28 +0000</pubDate>
			<dc:creator>theslink2000</dc:creator>
			<guid isPermaLink="false">102123@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here's the complete file for the emailing out on form submission:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/private/xqs9nutx2ww1rrpvmpbp3w&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/private/xqs9nutx2ww1rrpvmpbp3w&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here's the code powering the form, specifically look at the patient id number section;&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/private/0hxws6a4duv3jipfwravw&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/private/0hxws6a4duv3jipfwravw&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;$entry can dump fine, here is an example I've just done:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/private/gzgx1muzbnyu1zt23cwdq&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/private/gzgx1muzbnyu1zt23cwdq&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Please forgive the mess they're in, it's still all a work in progress.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
