gistfile1.php
$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’,
));
gistfile1.php
$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',
));
No comments yet.