Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
kosashi777
tagDiv Member

what a FUCKING answer!!!
you even don’t know how to modified your own creation theme, now you told me to hire a freelancer…!!!

kosashi777
tagDiv Member

i know that your theme got no such option…
so i ask you how to add some code to do that…

here is default code for registering user with custom form field:

add_action(‘user_register’,’custom_user_register’);
function custom_user_register($user_id) {
if (!empty($_POST[‘bank’])) {
update_user_meta($user_id,’bank’,trim($_POST[‘bank’]));
}
if (!empty($_POST[‘account_no’])) {
update_user_meta($user_id,’account_no’,trim($_POST[‘account_no’]));
}
if (!empty($_POST[‘account_holder_name’])) {
update_user_meta($user_id,’account_holder_name’,trim($_POST[‘account_holder_name’]));
}
if (!empty($_POST[‘phone’])) {
update_user_meta($user_id,’phone’,trim($_POST[‘phone’]));
}
}

where should i put those code?
those code doesn’t work with your theme

i can add some extra field on your registration form by adding some code in the file top-menu.php in directory /parts/header/ but it wont save those custom field to usermeta

Viewing 2 posts - 1 through 2 (of 2 total)