diff --git a/classes/PodsAPI.php b/classes/PodsAPI.php index f93afbbe72..3c6d39561a 100644 --- a/classes/PodsAPI.php +++ b/classes/PodsAPI.php @@ -1203,8 +1203,8 @@ public function get_wp_object_fields( $object = 'post_type', $pod = null, $refre 'type' => 'number', 'alias' => array( 'id' ), 'options' => array( - 'number_format' => '9999.99' - ) + 'number_format' => '9999.99', + ), ), 'user_login' => array( 'name' => 'user_login', @@ -1212,20 +1212,32 @@ public function get_wp_object_fields( $object = 'post_type', $pod = null, $refre 'type' => 'text', 'alias' => array( 'login' ), 'options' => array( - 'required' => 1 - ) + 'required' => 1, + ), ), 'user_nicename' => array( 'name' => 'user_nicename', 'label' => 'Permalink', 'type' => 'slug', - 'alias' => array( 'nicename', 'slug', 'permalink' ) + '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', 'type' => 'text', - 'alias' => array( 'title', 'name' ) + 'alias' => array( 'title', 'name' ), ), 'user_pass' => array( 'name' => 'user_pass', @@ -1234,8 +1246,8 @@ public function get_wp_object_fields( $object = 'post_type', $pod = null, $refre 'alias' => array( 'password', 'pass' ), 'options' => array( 'required' => 1, - 'text_format_type' => 'password' - ) + 'text_format_type' => 'password', + ), ), 'user_email' => array( 'name' => 'user_email', @@ -1244,8 +1256,8 @@ public function get_wp_object_fields( $object = 'post_type', $pod = null, $refre 'alias' => array( 'email' ), 'options' => array( 'required' => 1, - 'text_format_type' => 'email' - ) + 'text_format_type' => 'email', + ), ), 'user_url' => array( 'name' => 'user_url', @@ -1255,8 +1267,8 @@ public function get_wp_object_fields( $object = 'post_type', $pod = null, $refre 'options' => array( 'required' => 0, 'text_format_type' => 'website', - 'text_format_website' => 'normal' - ) + 'text_format_website' => 'normal', + ), ), 'user_registered' => array( 'name' => 'user_registered', @@ -1264,9 +1276,9 @@ public function get_wp_object_fields( $object = 'post_type', $pod = null, $refre 'type' => 'date', 'alias' => array( 'created', 'date', 'registered' ), 'options' => array( - 'date_format_type' => 'datetime' - ) - ) + 'date_format_type' => 'datetime', + ), + ), ); } elseif ( 'comment' === $object ) { $fields = array(