Skip to main content
7 of 7
Improve code formatting / indentation, misc
Gabriel
  • 2.2k
  • 10
  • 22
  • 24

You can use this filter to add your fields:

apply_filters( 'show_password_fields', true );
add_filter( 'show_password_fields', 'yourfunction', 10, 1 );
function yourfunction( $return ) {
    ?><tr>
        <th><label for="gender">Gender</label></th>
        <td>
            <label><input type="radio" name="w4p_user_gender" value="male" class="regular-radio" />Male</label>
            <label style="margin-left:10px"><input type="radio" name="w4p_user_gender" value="female" class="regular-radio" />Female</label><br/>
            <span class="description">Please select your Gender.</span>
        </td>
    </tr><?php
    return $return;
}

I don't know if it's a good idea or not, but it works for me. :)