Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Adding custom usermeta to Registration

I think that I may have come up with a solution for my issue with custom signup fields using BuddyPress 1.2.1 on a standalone installation of WordPress 2.9.2. After much digging around I basically ended up with a function that looks a little like the one below in my bp-custom.php file.

function bp_custom_signup_fields( $user_id) {

$bpCustomField = $_POST['bp_custom_field'];

update_usermeta( $user_id, 'bp_custom_field', $bpCustomField );

return $user_id;
}
add_action( 'user_register', 'bp_custom_signup_fields' );

This seems to be working as I want it to, but if anyone is aware of any issues that this may cause, please do let me know.

Skip to toolbar