Pods form display/output user meta field (using label) when not added under User in Pods

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.

Leave a Reply