Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenhornet79/dc58bc68ef3a0e6806162b2779ae7947 to your computer and use it in GitHub Desktop.
Save greenhornet79/dc58bc68ef3a0e6806162b2779ae7947 to your computer and use it in GitHub Desktop.
<?php
// display data on the WP user profile page
add_action('show_user_profile', 'zeen101_corporate_show_extra_profile_fields');
add_action('edit_user_profile', 'zeen101_corporate_show_extra_profile_fields');
function zeen101_corporate_show_extra_profile_fields($user)
{ ?>
<h3>Leaky Paywall Corporate Subscription Custom Fields</h3>
<table class="form-table">
<tr>
<th><label for="phone">Phone</label></th>
<td>
<?php echo esc_attr(get_user_meta($user->ID, '_phone', true)); ?>
</td>
</tr>
</table>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment