I have another issue based on the same problem with Country. All the fields I made for the default Registration (same as Default Profile) are not in order in admin under user profile editing.
I’m using;
function tm_additional_contact_methods( $fields ) {
$um_fields = get_option('um_fields');
foreach ($um_fields as $key => $value){
if ($um_fields[$key]['type'] != 'block'){
$fields[$key] = $um_fields[$key]['title'];
}
}
unset($fields['googleplus']);
unset($fields['twitter']);
unset($fields['facebook']);
unset($fields['contact_facebook']);
unset($fields['contact_phone_office']);
unset($fields['contact_phone_mobile']);
unset($fields['contact_office_fax']);
unset($fields['address_line_1']);
unset($fields['address_line_2']);
unset($fields['address_city']);
unset($fields['address_state']);
unset($fields['address_zipcode']);
return $fields;
}
add_filter( 'user_contactmethods', 'tm_additional_contact_methods' );
I’m not able to get the Country dropdown select to list doing it this way. Do you know of another way so I can get it to work?
-
This reply was modified 7 years, 10 months ago by nathaniel45.