Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Expanding User Profile Details

It is really easy to add profile fields.

First, you need to print the fields you need:

add_action('extra_profile_fields', 'print_extra_fields');
function print_extra_fields($user_ID) {
/* get the current values for that user, and print your form items */
}

add_action('profile_edited', 'process_extra_fields');
function process_extra_fields($user_ID){
/* here, $_POST contains the new field values. so you can do things like bb_update_usermeta($user_ID, 'your_field', $_POST['your_field']); ... */
}

Please correct me if i’m wrong. I don’t remember the action names. But this works :) I use it in WP and BBP.

Skip to toolbar