There is a site on wordpress, I want to add to the user profile the ability to select gender (male / female) using the radiobutton switch. Register in the file functions.php filter
add_filter('user_contactmethods', 'my_user_gender'); function my_user_gender($user_contactmethods){ $user_contactmethods['gender'] = 'Пол'; return $user_contactmethods; } However, in the profile I get a standard input field opposite the inscription "Gender". How to make this field in the form of a switch?
