Adding custom member profile fields to signup moderation
Posted: February 23rd, 2011, 3:34 pm
Hi,
Would like to know what I add to the code to add some custom signup fields into signiup moderation plugin v. 0.1.
Example: user's that signup have city, state and zip. How would i include that in this table with the php code below?
<table class="widefat">
<tbody>
<tr class="thead">
<th><?php _e('ID','wp-user-moderation') ?></th>
<th><?php _e('Username','wp-user-moderation') ?></th>
<th><?php _e('First Name','wp-user-moderation') ?></th>
<th><?php _e('Last Name','wp-user-moderation') ?></th>
<th><?php _e('E-mail','wp-user-moderation') ?></th>
<th colspan="2" style="text-align: center"><?php _e('Actions','wp-user-moderation') ?></th>
</tr>
</tbody>
<tbody>
<?php foreach($users as $user_object) : ?>
<tr class="alternate">
<td><?php echo $user_object->ID; ?></td>
<td><?php echo $user_object->user_login; ?></td>
<td><?php echo get_usermeta($user_object->ID,'first_name'); ?></td>
<td><?php echo get_usermeta($user_object->ID,'last_name'); ?></td>
<td><?php echo $user_object->user_email; ?></td>
<td><a href="<?php echo $_SERVER['PHP_SELF'];?>?page=WPUserMod&userid=<?php echo $user_object->ID; ?>&do=discard" class="edit"><?php _e('Discard','wp-user-moderation') ?></a></td>
<td><a href="<?php echo $_SERVER['PHP_SELF'];?>?page=WPUserMod&userid=<?php echo $user_object->ID; ?>&do=approve" class="edit"><?php _e('Approve','wp-user-moderation') ?></a></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
Would like to know what I add to the code to add some custom signup fields into signiup moderation plugin v. 0.1.
Example: user's that signup have city, state and zip. How would i include that in this table with the php code below?
<table class="widefat">
<tbody>
<tr class="thead">
<th><?php _e('ID','wp-user-moderation') ?></th>
<th><?php _e('Username','wp-user-moderation') ?></th>
<th><?php _e('First Name','wp-user-moderation') ?></th>
<th><?php _e('Last Name','wp-user-moderation') ?></th>
<th><?php _e('E-mail','wp-user-moderation') ?></th>
<th colspan="2" style="text-align: center"><?php _e('Actions','wp-user-moderation') ?></th>
</tr>
</tbody>
<tbody>
<?php foreach($users as $user_object) : ?>
<tr class="alternate">
<td><?php echo $user_object->ID; ?></td>
<td><?php echo $user_object->user_login; ?></td>
<td><?php echo get_usermeta($user_object->ID,'first_name'); ?></td>
<td><?php echo get_usermeta($user_object->ID,'last_name'); ?></td>
<td><?php echo $user_object->user_email; ?></td>
<td><a href="<?php echo $_SERVER['PHP_SELF'];?>?page=WPUserMod&userid=<?php echo $user_object->ID; ?>&do=discard" class="edit"><?php _e('Discard','wp-user-moderation') ?></a></td>
<td><a href="<?php echo $_SERVER['PHP_SELF'];?>?page=WPUserMod&userid=<?php echo $user_object->ID; ?>&do=approve" class="edit"><?php _e('Approve','wp-user-moderation') ?></a></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>