Skip to main content
Improve code formatting / indentation, misc
Source Link
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','youfunction' 'yourfunction', 10, 1 );
function youfunctionyourfunction( $return )
  {
    ?>
    <tr>><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>
    <tr><?php
    return $return;
}

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

You can use this filter to add your fields.

apply_filters('show_password_fields', true) )
add_filter('show_password_fields','youfunction',10,1);
function youfunction($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 is good idea or not but it works for me :).

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. :)

You can use this filter to add your fields.

apply_filters('show_password_fields', true) )
add_filter('show_password_fields','youfunction',10,1);
function youfunction($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;
}

this filter to add your fields. II don't know it'sif it is a good idea or not but it works for me :).

You can use

apply_filters('show_password_fields', true) )
add_filter('show_password_fields','youfunction',10,1);
function youfunction($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;
}

this filter to add your fields. I don't know it's is a good idea or not but works for me :).

You can use this filter to add your fields.

apply_filters('show_password_fields', true) )
add_filter('show_password_fields','youfunction',10,1);
function youfunction($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 is good idea or not but it works for me :).

added 3 characters in body
Source Link

You can use

apply_filters('show_password_fields', true) );
add_filter('show_password_fields','youfunction',10,1);
 
function youfunction($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;
}

this filter to add your fields. I don't know it's is a good idea or not but works for me :).

You can use

apply_filters('show_password_fields', true) );
add_filter('show_password_fields','youfunction',10,1);
 
function youfunction($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;
}

this filter to add your fields. I don't know it's is a good idea or not but works for me :).

You can use

apply_filters('show_password_fields', true) )
add_filter('show_password_fields','youfunction',10,1);
function youfunction($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;
}

this filter to add your fields. I don't know it's is a good idea or not but works for me :).

fixed formatting. again.
Source Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459
Loading
added 10 characters in body
Source Link
Loading
added 68 characters in body
Source Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459
Loading
Source Link
Loading