Skip to content

Commit

Permalink
Add first_name & last_name to user object fields
Browse files Browse the repository at this point in the history
  • Loading branch information
JoryHogeveen committed Jul 14, 2020
1 parent 490daec commit 19153ff
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions classes/PodsAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,18 @@ public function get_wp_object_fields( $object = 'post_type', $pod = null, $refre
'type' => 'slug',
'alias' => array( 'nicename', 'slug', 'permalink' )
),
'first_name' => array(
'name' => 'first_name',
'label' => 'First Name',
'type' => 'text',
'alias' => array( 'firstname' )
),
'last_name' => array(
'name' => 'last_name',
'label' => 'Last Name',
'type' => 'text',
'alias' => array( 'lastname' )
),
'display_name' => array(
'name' => 'display_name',
'label' => 'Display Name',
Expand Down

0 comments on commit 19153ff

Please sign in to comment.