Added user_login and work extesion to the profile
Showing
3 changed files
with
10 additions
and
1 deletions
| ... | @@ -275,6 +275,10 @@ class ProfileValidation extends Common\Validation { | ... | @@ -275,6 +275,10 @@ class ProfileValidation extends Common\Validation { |
| 275 | update_user_meta($_POST['uid'], __FUNCTION__, $val); | 275 | update_user_meta($_POST['uid'], __FUNCTION__, $val); |
| 276 | } | 276 | } |
| 277 | 277 | ||
| 278 | public function work_extension($val) { | ||
| 279 | update_user_meta($_POST['uid'], __FUNCTION__, $val); | ||
| 280 | } | ||
| 281 | |||
| 278 | 282 | ||
| 279 | public function work_mobile($val) { | 283 | public function work_mobile($val) { |
| 280 | update_user_meta($_POST['uid'], __FUNCTION__, $val); | 284 | update_user_meta($_POST['uid'], __FUNCTION__, $val); | ... | ... |
| ... | @@ -65,6 +65,10 @@ use WP_User, WP_Roles; | ... | @@ -65,6 +65,10 @@ use WP_User, WP_Roles; |
| 65 | 65 | ||
| 66 | <table cellspacing="0" class="widefat post fixed" style="border:none;"> | 66 | <table cellspacing="0" class="widefat post fixed" style="border:none;"> |
| 67 | <tbody> | 67 | <tbody> |
| 68 | <tr> | ||
| 69 | <th>User Login:</th> | ||
| 70 | <td><?php echo $account->user_login; ?></td> | ||
| 71 | </tr> | ||
| 68 | <?php if (!empty($first_name)): ?> | 72 | <?php if (!empty($first_name)): ?> |
| 69 | <tr> | 73 | <tr> |
| 70 | <th>First Name:</th> | 74 | <th>First Name:</th> | ... | ... |
| ... | @@ -209,7 +209,8 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true); | ... | @@ -209,7 +209,8 @@ $preference = get_user_meta($user->ID, 'email_address_preference', true); |
| 209 | 209 | ||
| 210 | <tr> | 210 | <tr> |
| 211 | <th>Phone:</th> | 211 | <th>Phone:</th> |
| 212 | <td><input type="text" name="work_phone" value="<?php echo get_user_meta($_GET['uid'], 'work_phone', true);?>" rel="mask-phone" /></td> | 212 | <td><input type="text" name="work_phone" value="<?php echo get_user_meta($_GET['uid'], 'work_phone', true);?>" rel="mask-phone" /> |
| 213 | Ext. <input style="width:40px;" type="text" name="work_extension" value="<?php echo get_user_meta($_GET['uid'], 'work_extension', true);?>" rel="mask-phone" /></td> | ||
| 213 | </tr> | 214 | </tr> |
| 214 | <tr> | 215 | <tr> |
| 215 | <th>Fax:</th> | 216 | <th>Fax:</th> | ... | ... |
-
Please register or sign in to post a comment