registration page help
-
hi.
i did create a new profile field (custom user_meta), with help of this code:add_action( 'personal_options_update', 'my_save_extra_profile_fields' ); add_action( 'edit_user_profile_update', 'my_save_extra_profile_fields' ); function my_save_extra_profile_fields( $user_id ) { if ( !current_user_can( 'edit_user', $user_id ) ) return false; /* Copy and paste this line for additional fields. */ add_user_meta( $user_id, ‘person_relation’, 30318 ); update_user_meta( $user_id, 'person_relation', $_POST['person_relation'] ); }and added a column to view it in my dashboard (users page)
i have a sign up page, which uses POST method.
so, i created a place for users to fill the information i needed with this code:<tr> <th><label for="person_relation">Inviter's Name</label></th> <td> <input type="text" name="person_relation" id="person_relation" value="<?php echo esc_attr( get_the_author_meta( 'person_relation', $user->ID ) ); ?>" class="regular-text" /><br /> <span class="description">Please enter your inviter's name.</span> </td> </tr>BUT when the user click on “Complete sign up”.
the info i want, is returning null! nothing is in it! 😐
and i have to ask my users again! to tell me the info, so i can enter it manually from dashboard->users->edit->…how can i recieve that user_meta from the registration form (i mean when the
users complete their sign up and push the button)?
do i need to add something? how?
any help would be appreciated.tnx a lottt.
The topic ‘registration page help’ is closed to new replies.