<?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: using gform options to manipulate register user addon</title>
		<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon</link>
		<description>Gravity Support Forums Topic: using gform options to manipulate register user addon</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 07:12:02 +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/using-gform-options-to-manipulate-register-user-addon" rel="self" type="application/rss+xml" />

		<item>
			<title>adomedia on "using gform options to manipulate register user addon"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon#post-29887</link>
			<pubDate>Wed, 13 Jul 2011 11:34:08 +0000</pubDate>
			<dc:creator>adomedia</dc:creator>
			<guid isPermaLink="false">29887@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I came up with this snippet:&#60;/p&#62;
&#60;p&#62;add_filter(&#34;gform_paypal_fulfillment&#34;, &#34;update_user_acc_status&#34;, 10, 4);&#60;/p&#62;
&#60;p&#62;function update_user_acc_status($entry) {&#60;br /&#62;
global $wpdb;&#60;br /&#62;
$user = get_user_by_email($entry['7']);&#60;br /&#62;
        $wp_user_object = new WP_User($user-&#38;gt;ID);&#60;br /&#62;
        $wp_user_object-&#38;gt;set_role('employer_active');&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;This basically means you can use the paypal add-on to renew membership, and alongside another snippet I wrote you can use gravity forms to manage a membership site :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>adomedia on "using gform options to manipulate register user addon"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon#post-28677</link>
			<pubDate>Tue, 28 Jun 2011 09:29:51 +0000</pubDate>
			<dc:creator>adomedia</dc:creator>
			<guid isPermaLink="false">28677@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks guys, your support is phenominal and always appreciated!&#60;/p&#62;
&#60;p&#62;many thanks!!!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "using gform options to manipulate register user addon"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon#post-28666</link>
			<pubDate>Tue, 28 Jun 2011 03:04:13 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">28666@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Tom Tong,&#60;/p&#62;
&#60;p&#62;You'll probably want to use the &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_paypal_fulfillment&#34; rel=&#34;nofollow&#34;&#62;gform_paypal_fulfillment&#60;/a&#62; hook which is fired when a PayPal transaction is fulfilled successfully.&#60;/p&#62;
&#60;p&#62;The user ID will not be readily available here; however, since you have the $entry, you have access to the $entry['id']. Each user created by the User Registration add-on has an &#34;entry_id&#34; custom meta value for the entry they were created by. You can then user the default WP function &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_users&#34; rel=&#34;nofollow&#34;&#62;get_users()&#60;/a&#62; to return the user with the meta key &#34;entry_id&#34; and the meta value of the entry ID available in the paypal hook.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "using gform options to manipulate register user addon"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon#post-28602</link>
			<pubDate>Mon, 27 Jun 2011 16:22:09 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28602@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I have asked our developer that works on the User Registration Add-On to chime in on this.  He is currently traveling so a soon as he gets a chance he will reply to this thread.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>adomedia on "using gform options to manipulate register user addon"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon#post-28572</link>
			<pubDate>Mon, 27 Jun 2011 06:37:50 +0000</pubDate>
			<dc:creator>adomedia</dc:creator>
			<guid isPermaLink="false">28572@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl,&#60;/p&#62;
&#60;p&#62;How would I pull out the ID of the registered user so that I can update the user role when a successful paypal transaction has been processed?&#60;/p&#62;
&#60;p&#62;I have it set so that no matter what the user is registered, I just need to change the role after the paypal transaction has been done. The other two options register the user on signup as pending, paypal will change that to active
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "using gform options to manipulate register user addon"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon#post-28327</link>
			<pubDate>Wed, 22 Jun 2011 13:44:05 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28327@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, it should fire when the user is registered regardless of the PayPal plugin setting.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>adomedia on "using gform options to manipulate register user addon"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon#post-28311</link>
			<pubDate>Wed, 22 Jun 2011 05:20:34 +0000</pubDate>
			<dc:creator>adomedia</dc:creator>
			<guid isPermaLink="false">28311@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Carl,&#60;br /&#62;
Does this hook fire regardless of the paypal plugin setting &#34;register user only when payment received&#34;?&#60;/p&#62;
&#60;p&#62;Thanks for the pointer!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "using gform options to manipulate register user addon"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon#post-27760</link>
			<pubDate>Tue, 14 Jun 2011 17:12:20 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">27760@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The User Registration Add-On developer documentation can be found here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/User_Registration_Add-on_Developer_Docs&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/User_Registration_Add-on_Developer_Docs&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;The hook you would most likely want to use is the gform_user_registered hook which can be found here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_user_registered&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_user_registered&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You'd have to check the entry data to see what was selected and then update the users role using that hook so it happens when they register.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>adomedia on "using gform options to manipulate register user addon"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon#post-27718</link>
			<pubDate>Tue, 14 Jun 2011 10:18:22 +0000</pubDate>
			<dc:creator>adomedia</dc:creator>
			<guid isPermaLink="false">27718@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;any ideas on this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>adomedia on "using gform options to manipulate register user addon"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/using-gform-options-to-manipulate-register-user-addon#post-27284</link>
			<pubDate>Wed, 08 Jun 2011 08:02:42 +0000</pubDate>
			<dc:creator>adomedia</dc:creator>
			<guid isPermaLink="false">27284@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;hi,&#60;br /&#62;
I have a form which has a selection of options for payment (via paypal, via cheque or via local authority). Paypal works fine using the paypal addon (redirects the user to paypal and once payment is received and registers the user as a fully fledged user.).&#60;/p&#62;
&#60;p&#62;I need to know which hook to use (and how to use it) to register the user as a specific user type (ie: &#34;user-pending&#34;) if an option other than paypal is selected.&#60;/p&#62;
&#60;p&#62;To sum up:&#60;br /&#62;
If &#34;pay with paypal&#34; is selected, register user via paypal addon as &#34;user&#34; after payment.&#60;br /&#62;
If &#34;pay with cheque&#34; or &#34;pay via local authority&#34; is selected, ignore paypal addon and register the user as &#34;user-pending&#34;.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
