Created
March 30, 2021 22:44
-
-
Save greenhornet79/dc58bc68ef3a0e6806162b2779ae7947 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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