<?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 User Favorites: azazure</title>
		<link><a href='https://legacy.forums.gravityhelp.com/profile/azazure'>azazure</a></link>
		<description>Gravity Support Forums User Favorites: azazure</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 17:25:58 +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/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>David Smith on "right parameter names to pre-populate the names fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/right-parameter-names-to-pre-populate-the-names-fields#post-46242</link>
			<pubDate>Thu, 12 Jan 2012 15:53:20 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">46242@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;For users using this method to populate user meta, you will need to update the populate_meta() function from the original snippet with this updated version for WP 3.3:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/3174155&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/3174155&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>phirefly on "right parameter names to pre-populate the names fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/right-parameter-names-to-pre-populate-the-names-fields#post-22773</link>
			<pubDate>Fri, 08 Apr 2011 07:49:04 +0000</pubDate>
			<dc:creator>phirefly</dc:creator>
			<guid isPermaLink="false">22773@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi David,&#60;/p&#62;
&#60;p&#62;many thanks - I am a muppet! Reading your post &#38;amp; referring back to my code it all makes sense now (I was using &#34;first_name&#34;)&#60;/p&#62;
&#60;p&#62;Many Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "right parameter names to pre-populate the names fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/right-parameter-names-to-pre-populate-the-names-fields#post-22717</link>
			<pubDate>Thu, 07 Apr 2011 15:07:22 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">22717@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Just tested on my localhost and it was working fine. Can you confirm that you're using &#34;user_firstname&#34; and &#34;user_lastname&#34; as the dynamic population parameters on the fields?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>phirefly on "right parameter names to pre-populate the names fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/right-parameter-names-to-pre-populate-the-names-fields#post-22682</link>
			<pubDate>Thu, 07 Apr 2011 06:54:49 +0000</pubDate>
			<dc:creator>phirefly</dc:creator>
			<guid isPermaLink="false">22682@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I too am using this method (I also use Register Plus Redux plugin) &#38;amp; it seems to work...nearly!&#60;/p&#62;
&#60;p&#62;Additional fields (order_id / phone) created using Register Plus Redux are working fine - Gravity forms are dynamically populating the fields, but the &#34;normal&#34; Wordpress ones are not (first_name / last_name / user_url / user_email).&#60;/p&#62;
&#60;p&#62;Would appreciate any assistance!&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/* populate the field with &#38;quot;user_firstname&#38;quot; as the population parameter with the &#38;quot;first_name&#38;quot; of the current user */
add_filter(&#38;#39;gform_field_value_user_firstname&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;#39;$value = populate_usermeta(\&#38;#39;first_name\&#38;#39;); return $value;&#38;#39; ));

/* populate the field with &#38;quot;user_lastname&#38;quot; as the population parameter with the &#38;quot;last_name&#38;quot; of the current user */
add_filter(&#38;#39;gform_field_value_user_lastname&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;#39;$value = populate_usermeta(\&#38;#39;last_name\&#38;#39;); return $value;&#38;#39; ));

/* populate the field with &#38;quot;phone&#38;quot; as the population parameter with the &#38;quot;phone&#38;quot; of the current user */
add_filter(&#38;#39;gform_field_value_phone&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;#39;$value = populate_usermeta(\&#38;#39;phone\&#38;#39;); return $value;&#38;#39; ));

/* populate the field with &#38;quot;order_id&#38;quot; as the population parameter with the &#38;quot;order_id&#38;quot; of the current user */
add_filter(&#38;#39;gform_field_value_order_id&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;#39;$value = populate_usermeta(\&#38;#39;order_id\&#38;#39;); return $value;&#38;#39; ));

/* populate the field with &#38;quot;email&#38;quot; as the population parameter with the &#38;quot;user_email&#38;quot; of the current user */
add_filter(&#38;#39;gform_field_value_email&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;#39;$value = populate_usermeta(\&#38;#39;user_email\&#38;#39;); return $value;&#38;#39; ));

/* populate the field with &#38;quot;business_website&#38;quot; as the population parameter with the &#38;quot;user_url&#38;quot; of the current user */
add_filter(&#38;#39;gform_field_value_business_website&#38;#39;, create_function(&#38;quot;&#38;quot;, &#38;#39;$value = populate_usermeta(\&#38;#39;user_url\&#38;#39;); return $value;&#38;#39; ));

/* this function is called by both filters and returns the requested user meta of the current user */
function populate_usermeta($meta_key){
    global $current_user;
    get_currentuserinfo();

    foreach($current_user as $key =&#38;gt; $value){
        if($key == $meta_key)
            return $value;
    }

    return &#38;#39;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>azazure on "right parameter names to pre-populate the names fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/right-parameter-names-to-pre-populate-the-names-fields#post-19019</link>
			<pubDate>Sat, 19 Feb 2011 19:02:47 +0000</pubDate>
			<dc:creator>azazure</dc:creator>
			<guid isPermaLink="false">19019@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I FINALLY figured out why I was having problems with the above code for the theme functions.php file.  Using &#34;//&#34; before the comments was not allowing the code to be read for some reason.  Since I like to document everything, I found that using /* and */ on the comments allowed everything to work perfectly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>azazure on "right parameter names to pre-populate the names fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/right-parameter-names-to-pre-populate-the-names-fields#post-18171</link>
			<pubDate>Thu, 10 Feb 2011 01:38:57 +0000</pubDate>
			<dc:creator>azazure</dc:creator>
			<guid isPermaLink="false">18171@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm also using Register Plus Redux if that makes a difference.  It's a free plugin which allows you to add additional fields to the registration.  BTW, I LOVE this plugin.  It is making short work out of what I thought would be an impossible job.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "right parameter names to pre-populate the names fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/right-parameter-names-to-pre-populate-the-names-fields#post-18167</link>
			<pubDate>Thu, 10 Feb 2011 01:11:33 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">18167@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Contact us via our Contact Us form and provide us with a WordPress admin login and FTP login for this site and a detailed description of what you are trying to do and we can look into this, check out your code and see what you are doing wrong.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>azazure on "right parameter names to pre-populate the names fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/right-parameter-names-to-pre-populate-the-names-fields#post-18151</link>
			<pubDate>Thu, 10 Feb 2011 00:34:09 +0000</pubDate>
			<dc:creator>azazure</dc:creator>
			<guid isPermaLink="false">18151@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, I must be stupid.  I am editing the correct functions.php file now in my atahualpa theme and have set the form fields to populate but nothing happens.  I have read the instructions and edited the form a hundred times to make sure I'm doing it correctly, but I just can't get it to work.  I even tried a different field (email) to see if it would work, but no dice.  Here is the code I'm putting at the top of my functions.php file:&#60;/p&#62;
&#60;p&#62;'&#38;lt;?php&#60;/p&#62;
&#60;p&#62;// populate the field with &#34;user_firstname&#34; as the population parameter with the &#34;first_name&#34; of the current user&#60;br /&#62;
add_filter('gform_field_value_user_firstname', create_function(&#34;&#34;, '$value = populate_usermeta(\'first_name\'); return $value;' ));&#60;/p&#62;
&#60;p&#62;// populate the field with &#34;user_lastname&#34; as the population parameter with the &#34;last_name&#34; of the current user&#60;br /&#62;
add_filter('gform_field_value_user_lastname', create_function(&#34;&#34;, '$value = populate_usermeta(\'last_name\'); return $value;' ));&#60;/p&#62;
&#60;p&#62;// populate the field with &#34;user_email&#34; as the population parameter with the &#34;user_email&#34; of the current user&#60;br /&#62;
add_filter('gform_field_value_user_email', create_function(&#34;&#34;, '$value = populate_usermeta(\'user_email\'); return $value;' ));&#60;/p&#62;
&#60;p&#62;// this function is called by both filters and returns the requested user meta of the current user&#60;br /&#62;
function populate_usermeta($meta_key){&#60;br /&#62;
    global $current_user;&#60;br /&#62;
    get_currentuserinfo();&#60;/p&#62;
&#60;p&#62;    foreach($current_user as $key =&#38;gt; $value){&#60;br /&#62;
        if($key == $meta_key)&#60;br /&#62;
            return $value;&#60;br /&#62;
    }&#60;/p&#62;
&#60;p&#62;    return '';&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;?&#38;gt;'
&#60;/p&#62;</description>
		</item>
		<item>
			<title>azazure on "right parameter names to pre-populate the names fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/right-parameter-names-to-pre-populate-the-names-fields#post-18135</link>
			<pubDate>Wed, 09 Feb 2011 22:13:05 +0000</pubDate>
			<dc:creator>azazure</dc:creator>
			<guid isPermaLink="false">18135@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thank you, I was not aware that there was more than one functions.php.  I made a backup copy of the file before I edited it so when it quit working I quickly replaced it with the original!  Thank you for your response, it is greatly appreciated.  I will try it again using the correct file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "right parameter names to pre-populate the names fields?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/right-parameter-names-to-pre-populate-the-names-fields#post-18115</link>
			<pubDate>Wed, 09 Feb 2011 18:57:15 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">18115@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@azazure, you were not supposed to modify wp-includes/functions.php.  You were supposed to add that code to the functions.php file in your active theme.  Please replace wp-includes/functions.php with a stock copy and then make the modification to the functions.php in your theme folder.  I think it will work for you then.&#60;/p&#62;
&#60;p&#62;If you cannot undo the edits you made, you can always get a fresh copy of the file here:&#60;br /&#62;
&#60;a href=&#34;http://svn.automattic.com/wordpress/tags/3.0.4/wp-includes/functions.php&#34; rel=&#34;nofollow&#34;&#62;http://svn.automattic.com/wordpress/tags/3.0.4/wp-includes/functions.php&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
