您可以使用此筛选器添加字段:
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;
}
我不知道这是不是一个好主意,但它对我有用。:)