<?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: Setting a default display name when registring</title>
		<link>https://legacy.forums.gravityhelp.com/topic/setting-a-default-display-name-when-registring</link>
		<description>Gravity Support Forums Topic: Setting a default display name when registring</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 23:06:23 +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/setting-a-default-display-name-when-registring" rel="self" type="application/rss+xml" />

		<item>
			<title>Steffen Bang Nielsen on "Setting a default display name when registring"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/setting-a-default-display-name-when-registring#post-22149</link>
			<pubDate>Thu, 31 Mar 2011 07:13:09 +0000</pubDate>
			<dc:creator>Steffen Bang Nielsen</dc:creator>
			<guid isPermaLink="false">22149@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It works nicely
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Setting a default display name when registring"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/setting-a-default-display-name-when-registring#post-20127</link>
			<pubDate>Tue, 08 Mar 2011 12:39:51 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">20127@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey there, give this a shot: &#60;a href=&#34;http://pastie.org/1647908&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1647908&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Just paste that in your theme's functions.php file. It uses a GF User Registration hook to update the display name to the full name immediately after the user is registered.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Steffen Bang Nielsen on "Setting a default display name when registring"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/setting-a-default-display-name-when-registring#post-20098</link>
			<pubDate>Mon, 07 Mar 2011 20:07:22 +0000</pubDate>
			<dc:creator>Steffen Bang Nielsen</dc:creator>
			<guid isPermaLink="false">20098@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;On &#60;a href=&#34;http://www.dagenspharma.dk&#34; rel=&#34;nofollow&#34;&#62;http://www.dagenspharma.dk&#60;/a&#62; we’re using ’User Registration Add-On’ for signing up people as subscribers.&#60;/p&#62;
&#60;p&#62;The only problem is, that we would like set the users display name to be his/hers full name, not the username, as wordpress would want us to.&#60;/p&#62;
&#60;p&#62;Since ’User Registration Add-On will not let us map a field in the form to be display-name, we’ve tried to change a couple of lines in user.php (/wp-includes) like this:&#60;/p&#62;
&#60;p&#62;BEFORE&#60;br /&#62;
if ( empty($display_name) )&#60;br /&#62;
		$display_name = $display_name;&#60;br /&#62;
	$display_name = apply_filters('pre_user_display_name', $display_name);&#60;/p&#62;
&#60;p&#62;AFTER&#60;br /&#62;
if ( empty($display_name) )&#60;br /&#62;
		$display_name = $first_name.' '.$last_name;&#60;br /&#62;
	$display_name = apply_filters('pre_user_display_name', $display_name);&#60;/p&#62;
&#60;p&#62;It actually works, when a user is created from the wordpress-backend, but not when a user creates his own account from our frontpage. In that case the display-name is just left blank.&#60;/p&#62;
&#60;p&#62;any ideas, anyone?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
