Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,912
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,184
-
I’m stupid, I was fooling around trying to find a way to prevent users from changing their display name and added some code:
function disable_name_change( $data ) { // Prevent users from changing display name
if ( 1 == $data->field_id )
$data->field_id = false;
return $data;
}
add_action( 'xprofile_data_before_save', 'disable_name_change' );
And this was causing it.
I’ve resorted to just hiding the display name and field field in my theme’s css, so this is not necessary anyway.