On http://www.dagenspharma.dk we’re using ’User Registration Add-On’ for signing up people as subscribers.
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.
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:
BEFORE
if ( empty($display_name) )
$display_name = $display_name;
$display_name = apply_filters('pre_user_display_name', $display_name);
AFTER
if ( empty($display_name) )
$display_name = $first_name.' '.$last_name;
$display_name = apply_filters('pre_user_display_name', $display_name);
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.
any ideas, anyone?