Created
May 14, 2014 14:27
-
-
Save tripflex/6053f881a46c3b57e435 to your computer and use it in GitHub Desktop.
Pods form display/output user meta field (using label) when not added under User in Pods
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
$user = wp_get_current_user(); | |
$pod = pods('user', $user->ID); | |
$out = $pod->form(array( | |
'first_name' => array( | |
'label' => 'First name', | |
'type' => 'text', | |
'options' => array( | |
'required' => true, | |
), | |
), | |
'last_name' => array( | |
'label' => 'Last name', | |
'type' => 'text', | |
'options' => array( | |
'required' => true, | |
), | |
), | |
'user_email', | |
'gsm', | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment