Last active
February 27, 2017 20:35
-
-
Save alenabdula/c67cb6672638cbd8ba103e19ee842953 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Get User Metadata. | |
*/ | |
$user_id = wp_get_current_user()->ID; | |
$user_data = get_user_meta($user_id); | |
var_dump($user_data); | |
/* | |
* HTML structure for custom WordPress user data! | |
* | |
<h2>Section Heading</h2> | |
<table class="form-table"> | |
<tbody> | |
<tr> | |
<th> | |
<label for=""></label> | |
</th> | |
<td> | |
<input type="text" id="" name=""> | |
<p class="description"></p> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment