Re: Can I add form fields to the registration page?
Here’s a more complete non-core-hacking solution:
<?php
/*
Plugin Name: Customize User Profile
*/
add_filter( 'get_profile_info_keys', 'customize_user_profile', 10, 2 );
function customize_user_profile( $fields, $context ) {
/**
* Remove undesired fields
*
* Commented = left
* Uncommented = removed
*/
// unset( $fields['first_name'] );
// unset( $fields['last_name'] );
unset( $fields['user_url'] );
// unset( $fields['from'] );
unset( $fields['occ'] );
unset( $fields['interest'] );
/**
* Add new fields
*
* Quoting functions.bb-core.php, line 906:
* meta_key => (required?, Label, hCard property). Don't use user_{anything} as the name of your meta_key.
*/
$fields['my_meta_key'] = array(
false,
__( 'My meta key' ),
'text'
);
return $fields;
}
?>
Of course, as usual, replace < and > with angular parentheses.